예제 #1
0
 public function testWithDuplicates()
 {
     try {
         $dir = dirname(dirname(dirname(dirname(__FILE__)))) . '/fixtures/migrations_with_duplicate/';
         Mad_Model_Migration_Migrator::up($dir);
     } catch (Exception $e) {
         return;
     }
     $this->fail('Expected exception wasn\'t raised');
 }
예제 #2
0
 /**
  * Resets your database using your migrations for the current environment
  */
 public function db_reset()
 {
     $path = MAD_ROOT . '/db/migrate/';
     Mad_Model_Migration_Migrator::down($path, 0);
     Mad_Model_Migration_Migrator::up($path);
 }