예제 #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
파일: Migration.php 프로젝트: reoring/sabel
 protected function getStatement()
 {
     return Sabel_Db_Migration_Manager::getStatement();
 }