/**
  * Mark this database as past the initial data loading, used for an upgrade.
  *
  * @param $args
  * @return void
  */
 public function actionMark($args)
 {
     $args = array('m140411_120957_load_misc');
     parent::actionMark($args);
 }
示例#2
0
 public function actionMark($args)
 {
     // migrations that need to be updated after command
     $migrations = $this->getNewMigrations();
     // run mark action
     $this->_scopeAddModule = false;
     $exitCode = parent::actionMark($args);
     $this->_scopeAddModule = true;
     // update migration table with modules
     /** @var CDbCommand $command */
     $command = $this->getDbConnection()->createCommand()->select('version')->from($this->migrationTable)->where('module IS NULL');
     foreach ($command->queryColumn() as $version) {
         $module = null;
         foreach ($migrations as $migration) {
             list($module, $migration) = explode($this->moduleDelimiter, $migration);
             if ($migration == $version) {
                 break;
             }
         }
         $this->ensureBaseMigration($module);
         $this->getDbConnection()->createCommand()->update($this->migrationTable, array('module' => $module), 'version=:version', array(':version' => $version));
     }
     return $exitCode;
 }
 /**
  * Mark this database as past the initial data loading, used for an upgrade.
  *
  * @param $args
  * @return void
  */
 public function actionMark($args)
 {
     $args = array('m140430_200509_ship_pay_cc_updates');
     parent::actionMark($args);
 }