示例#1
0
文件: Query.php 项目: reoring/sabel
 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();
     }
 }
示例#2
0
 protected function getStatement()
 {
     return Sabel_Db_Migration_Manager::getStatement();
 }