-migrations uses object mapping to update database

This commit is contained in:
martin 2011-03-08 17:02:26 -05:00
parent 73f4f140df
commit 2a8e8715d2
2 changed files with 4 additions and 4 deletions

View file

@ -9,13 +9,13 @@ class Version20110308003959 extends AbstractMigration
{
public function up(Schema $schema)
{
$table = $this->getTable("cc_show_instances");
$table->addColumn("record", "boolean");
$table = $schema->getTable("cc_show_instances");
$table->addColumn("record", "boolean", array( 'notnull' => 0, 'default' => 0));
}
public function down(Schema $schema)
{
$table = $this->getTable("cc_show_instances");
$table = $schema->getTable("cc_show_instances");
$table->dropColumn("record");
}
}