-doctrine 2.0 alpha upgrade scripts
This commit is contained in:
parent
3253d521d1
commit
7c1739247d
8 changed files with 20 additions and 43 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue