Untitled
By: a guest | Mar 21st, 2010 | Syntax:
None | Size: 0.61 KB | Hits: 70 | Expires: Never
<?php
namespace DoctrineMigrations;
use DoctrineExtensions\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
class Migration1 extends AbstractMigration
{
public function up(Schema $schema)
{
$table = $schema->createTable('testing1');
$table->addColumn('test', 'string');
$table = $schema->createTable('testing3');
$table->addColumn('test1', 'string');
$table->addColumn('test2', 'string');
}
public function down(Schema $schema)
{
$schema->dropTable('testing1');
$schema->dropTable('testing3');
}
}