-migrations uses object mapping to update database
This commit is contained in:
parent
73f4f140df
commit
2a8e8715d2
2 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue