1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/tests/migration_classes/001_add_table.php
2007-10-15 23:39:20 +00:00

14 lines
346 B
PHP

<?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');
}
}