public function up()
    {
        $record = new MigrationRecord();
        if ($this->connection !== null) {
            $record->setConnection($this->connection);
        }
        $record->migration = $this->name;
        $record->save();
    }
public function up()
    {
        $record = new MigrationRecord();
        if ($this->connection !== null) {
            $record->setConnection($this->connection);
        }
        $record->migration = $this->name;
        $record->save();
    }
public function up ( ) { $ record = new MigrationRecord ( ) ; if ( $ this -> connection !== null ) { $ record -> setConnection ( $ this -> connection ) ; } $ record -> migration = $ this -> name ; $ record -> save ( ) ; }
Insert data into migration table
Insert data into migration table