public function createRepository()
    {
        $schema = $this->getConnection()->getSchemaBuilder();

        $method = (!$schema->hasTable($this->table))
            ? 'create' : 'table';

        $schema->$method($this->table, function (Blueprint $table) use ($method) {
            // Drop old columns from CI_Migration library
            if ($method == 'table') {
                $table->dropColumn('type');
                $table->dropColumn('version');
            }

            // The migrations table is responsible for keeping track of which of the
            // migrations have actually run for the application. We'll create the
            // table to hold the migration file's path as well as the batch ID.
            $table->increments('id');
            $table->string('group');
            $table->string('migration');
            $table->integer('batch');
        });
    }
public function createRepository()
    {
        $schema = $this->getConnection()->getSchemaBuilder();

        $method = (!$schema->hasTable($this->table))
            ? 'create' : 'table';

        $schema->$method($this->table, function (Blueprint $table) use ($method) {
            // Drop old columns from CI_Migration library
            if ($method == 'table') {
                $table->dropColumn('type');
                $table->dropColumn('version');
            }

            // The migrations table is responsible for keeping track of which of the
            // migrations have actually run for the application. We'll create the
            // table to hold the migration file's path as well as the batch ID.
            $table->increments('id');
            $table->string('group');
            $table->string('migration');
            $table->integer('batch');
        });
    }
public function createRepository ( ) { $ schema = $ this -> getConnection ( ) -> getSchemaBuilder ( ) ; $ method = ( ! $ schema -> hasTable ( $ this -> table ) ) ? 'create' : 'table' ; $ schema -> $ method ( $ this -> table , function ( Blueprint $ table ) use ( $ method ) { // Drop old columns from CI_Migration library if ( $ method == 'table' ) { $ table -> dropColumn ( 'type' ) ; $ table -> dropColumn ( 'version' ) ; } // The migrations table is responsible for keeping track of which of the // migrations have actually run for the application. We'll create the // table to hold the migration file's path as well as the batch ID. $ table -> increments ( 'id' ) ; $ table -> string ( 'group' ) ; $ table -> string ( 'migration' ) ; $ table -> integer ( 'batch' ) ; } ) ; }
Create the migration repository data store.
@return void
Create the migration repository data store .