Esempio n. 1
0
 public function testQueries()
 {
     $queries = array('QUERY 1', 'QUERY 2');
     $rollbackQueries = array('ROLLBACK QUERY 1', 'ROLLBACK QUERY 2');
     $migration = new Migration($queries, $rollbackQueries);
     $this->assertEquals($queries, $migration->getQueries());
     $this->assertEquals($rollbackQueries, $migration->getRollbackQueries());
 }
Esempio n. 2
0
File: Runner.php Progetto: itkg/core
 /**
  * Play rollback queries
  *
  * @param bool $executeQueries
  * @return void
  */
 private function playRollbackQueries($executeQueries = false)
 {
     foreach ($this->migration->getRollbackQueries() as $query) {
         $this->runQuery($query, $executeQueries);
     }
 }