private function createMigrationTable()
    {
        $adapter = Database::getConnectionAdapter();
        $table = $adapter->getTablePrefix().config('database.migration');
        $generator = new SQLGenerator(
            $table,
            $adapter->getName(),
            'create'
        );

        $generator->addColumn('migration', 'string', ['unique' => true]);
        $generator->addColumn('batch', 'int');
        $generator->addColumn('created_at', 'datetime', [
            'default' => 'CURRENT_TIMESTAMP',
            'nullable' => true
        ]);

        $sql = sprintf(
            'CREATE TABLE IF NOT EXISTS %s (%s);',
            $table,
            $generator->make()
        );

        return Database::statement($sql);
    }
private function createMigrationTable()
    {
        $adapter = Database::getConnectionAdapter();
        $table = $adapter->getTablePrefix().config('database.migration');
        $generator = new SQLGenerator(
            $table,
            $adapter->getName(),
            'create'
        );

        $generator->addColumn('migration', 'string', ['unique' => true]);
        $generator->addColumn('batch', 'int');
        $generator->addColumn('created_at', 'datetime', [
            'default' => 'CURRENT_TIMESTAMP',
            'nullable' => true
        ]);

        $sql = sprintf(
            'CREATE TABLE IF NOT EXISTS %s (%s);',
            $table,
            $generator->make()
        );

        return Database::statement($sql);
    }
private function createMigrationTable ( ) { $ adapter = Database :: getConnectionAdapter ( ) ; $ table = $ adapter -> getTablePrefix ( ) . config ( 'database.migration' ) ; $ generator = new SQLGenerator ( $ table , $ adapter -> getName ( ) , 'create' ) ; $ generator -> addColumn ( 'migration' , 'string' , [ 'unique' => true ] ) ; $ generator -> addColumn ( 'batch' , 'int' ) ; $ generator -> addColumn ( 'created_at' , 'datetime' , [ 'default' => 'CURRENT_TIMESTAMP' , 'nullable' => true ] ) ; $ sql = sprintf ( 'CREATE TABLE IF NOT EXISTS %s (%s);' , $ table , $ generator -> make ( ) ) ; return Database :: statement ( $ sql ) ; }
Create the migration status table

@return void
Create the migration status table