예제 #1
0
 protected function runMigration(AbstractMigration $migration, $dry = false)
 {
     $migration->migrate($dry);
     if (!$dry) {
         $this->manager->logExecution($migration);
     }
 }
예제 #2
0
 protected function runMigration(AbstractMigration $migration, $dry = false)
 {
     $migration->rollback($dry);
     if (!$dry) {
         $this->manager->removeExecution($migration);
     }
 }
예제 #3
0
파일: Manager.php 프로젝트: lulco/phoenix
 private function createData(AbstractMigration $migration)
 {
     return ['classname' => $migration->getFullClassName(), 'migration_datetime' => $migration->getDatetime()];
 }
예제 #4
0
파일: 0_init.php 프로젝트: lulco/phoenix
 public function __construct(AdapterInterface $adapter, $logTableName)
 {
     parent::__construct($adapter);
     $this->logTableName = $logTableName;
 }