1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/tests/mysql_migration_classes/001_mysql_add_table.php

14 lines
351 B
PHP
Raw Normal View History

2007-11-08 20:12:11 +03:00
<?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');
}
}