-doctrine 2.0 alpha upgrade scripts

This commit is contained in:
martin 2011-03-08 16:44:47 -05:00
parent 3253d521d1
commit 7c1739247d
8 changed files with 20 additions and 43 deletions

View file

@ -9,13 +9,13 @@ class Version20110308003959 extends AbstractMigration
{
public function up(Schema $schema)
{
$table = $schema->createTable('users');
$table->addColumn('username', 'string');
$table->addColumn('password', 'string');
$table = $this->getTable("cc_show_instances");
$table->addColumn("record", "boolean");
}
public function down(Schema $schema)
{
$schema->dropTable('users');
$table = $this->getTable("cc_show_instances");
$table->dropColumn("record");
}
}