public function execute() { if (Sabel_Db_Migration_Manager::isUpgrade()) { $queries = $this->upgradeQueries; } else { $queries = $this->downgradeQueries; } $stmt = Sabel_Db_Migration_Manager::getStatement(); foreach ($queries as $query) { $stmt->setQuery($query)->execute(); } }
protected function getStatement() { return Sabel_Db_Migration_Manager::getStatement(); }