1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/tests/mysql_migration_classes/001_mysql_add_table.php
2007-11-08 17:12:11 +00:00

14 lines
351 B
PHP

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