public function configure()
    {
        if ($this->isConfigured()) {
            return;
        }

        foreach ($this->dbal->getDatabases() as $db) {
            $schema = $db->table($this->config->getTable())->getSchema();

            // Schema update will automatically sync all needed data
            $schema->primary('id');
            $schema->string('migration', 255)->nullable(false);
            $schema->datetime('time_executed')->datetime();
            $schema->index(['migration']);

            $schema->save();
        }
    }
public function configure()
    {
        if ($this->isConfigured()) {
            return;
        }

        foreach ($this->dbal->getDatabases() as $db) {
            $schema = $db->table($this->config->getTable())->getSchema();

            // Schema update will automatically sync all needed data
            $schema->primary('id');
            $schema->string('migration', 255)->nullable(false);
            $schema->datetime('time_executed')->datetime();
            $schema->index(['migration']);

            $schema->save();
        }
    }
public function configure ( ) { if ( $ this -> isConfigured ( ) ) { return ; } foreach ( $ this -> dbal -> getDatabases ( ) as $ db ) { $ schema = $ db -> table ( $ this -> config -> getTable ( ) ) -> getSchema ( ) ; // Schema update will automatically sync all needed data $ schema -> primary ( 'id' ) ; $ schema -> string ( 'migration' , 255 ) -> nullable ( false ) ; $ schema -> datetime ( 'time_executed' ) -> datetime ( ) ; $ schema -> index ( [ 'migration' ] ) ; $ schema -> save ( ) ; } }
Configure all related databases with migration table.
Configure all related databases with migration table .