PHP Schema::delete Examples

PHP Schema::delete - 2 examples found. These are the top rated real world PHP examples of Schema::delete extracted from open source projects. You can rate examples to help us improve the quality of examples.
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::delete('tasks');
 }
Example #2
0
 /**
  * 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();
 }