001_mysql_add_table.php 351 Bytes
Newer Older
samw3's avatar
samw3 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?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');
    }
}