1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests_old/migration_classes/001_add_table.php

14 lines
346 B
PHP
Raw Normal View History

2007-10-16 03:39:20 +04:00
<?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');
}
2007-09-21 00:24:38 +04:00
}