/** * Reverse the migrations. * * @return void */ public function down() { Schema::delete('tasks'); }
/** * Tests to delete a database which is new. * * @expectedException CDbException */ public function testDeleteNew() { // Create new schema $schema = new Schema(array('SCHEMA_NAME' => 'schematest1')); // Call delete -> Exception should be thrown. $schema->delete(); }