public function testRollback() { foreach ($this->tables as $table) { $this->assertTableExists($table); } $rollback = new \yentu\commands\Rollback(); $rollback->run(array()); foreach ($this->tables as $table) { if ($table == 'yentu_history') { continue; } $this->assertTableDoesntExist($table); } }
public function reverse() { if ($this->driver === null) { return; } ClearIce::output("Attempting to reverse all changes ... "); if ($this->getChanges() > 0) { ClearIce::pushOutputLevel(0); $rollback = new \yentu\commands\Rollback(); $rollback->run(array()); ClearIce::popOutputLevel(); } ClearIce::output("OK\n"); }