Exemplo n.º 1
0
 /**
  * db:migrate
  */
 public function run()
 {
     $this->ensureMigrationsTable();
     STable::setConnection($this->connection);
     STable::setTableName($this->migrationsTableName);
     $pending = $this->getPendingMigrations();
     foreach ($pending as $version) {
         $this->runUp($version);
     }
 }
Exemplo n.º 2
0
 /**
  * db:migrate
  */
 public function run()
 {
     $this->ensureMigrationsTableExists();
     Schema\SchemaMigration::setAdapter($this->adapter);
     Schema\SchemaMigration::setTableName($this->migrationsTableName);
     $pending = $this->getPendingMigrations();
     foreach ($pending as $version) {
         $this->runUp($version);
     }
 }