示例#1
0
 protected function execMigration()
 {
     if (self::$startVersion === null) {
         self::$startVersion = $this->currentVersion;
     }
     $this->files = Sabel_Db_Migration_Manager::getFiles();
     if (empty($this->files)) {
         $this->error("No migration files is found.");
         exit;
     }
     if ($this->toVersionNumber($this->arguments[1]) !== false) {
         if ($this->_execMigration()) {
             $this->execNextMigration();
         }
     }
 }