2007-10-15 23:39:20 +00:00
|
|
|
<?php
|
|
|
|
class AddTable extends Doctrine_Migration
|
|
|
|
{
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
$this->createTable('migration_test', array('field1' => array('type' => 'string')));
|
|
|
|
$this->addColumn('migration_test', 'field2', 'integer');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
$this->dropTable('migration_test');
|
|
|
|
}
|
2007-09-20 20:24:38 +00:00
|
|
|
}
|