root/trunk/tests_old/migration_classes/001_add_table.php

Revision 2878, 346 bytes (checked in by samw3, 15 months ago)

Testing migration addColumn

Line 
1<?php
2class AddTable extends Doctrine_Migration
3{
4    public function up()
5    {
6        $this->createTable('migration_test', array('field1' => array('type' => 'string')));
7        $this->addColumn('migration_test', 'field2', 'integer');
8    }
9   
10    public function down()
11    {
12        $this->dropTable('migration_test');
13    }
14}
Note: See TracBrowser for help on using the browser.