Exemple #1
0
 public function execute()
 {
     $version = Doctrine_Core::migrate($this->getArgument('migrations_path'), $this->getArgument('version'));
     $this->notify('migrated successfully to version #' . $version);
 }
 public function executeMigration($toVersion = null)
 {
     $this->_initDoctrineResource();
     $currentVersion = $this->getCurrentMigrationVersion();
     $migratePath = $this->_getMigrationsDirectoryPath();
     $newVersion = Doctrine_Core::migrate($migratePath, $toVersion);
     $this->_print('Migrated from version ' . $currentVersion . ' to ' . $newVersion);
 }