/** * Perform migration */ public function doMigrate() { foreach ($this->_getMigrationClasses() as $migration) { if ($this->_hasReachedTargetVersion($migration->version)) { $msg = "Reached target version: {$this->_targetVersion}"; Mad_Model_Base::logger()->info($msg); return; } if ($this->_isIrrelevantMigration($migration->version)) { continue; } // log $msg = "Migrating to " . get_class($migration) . " (" . $migration->version . ")"; Mad_Model_Base::logger()->info($msg); // migrate $migration->migrate($this->_direction); $this->_setSchemaVersion($migration->version); } }