/**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::delete('tasks');
 }
コード例 #2
0
ファイル: SchemaTest.php プロジェクト: cebe/chive
 /**
  * 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();
 }