/**
  * Migrate down.
  *
  * @param int $amount Number of reverted migrations.
  *
  * @return static
  * @since 0.1.0
  */
 public function revertMigrations($amount = 1)
 {
     $this->_mute();
     $this->_command->actionDown(array($amount));
     $this->_unmute();
     return $this;
 }
示例#2
0
 public function actionDown($args)
 {
     $this->_scopeAddModule = true;
     $exitCode = parent::actionDown($args);
     $this->_scopeAddModule = false;
     return $exitCode;
 }
示例#3
0
 public function actionDown($args)
 {
     $this->_scopeAddModule = true;
     parent::actionDown($args);
     $this->_scopeAddModule = false;
 }