CC-2806: Create upgrade template file

-missing function
-comment out redundant code
-Create cc_component table on upgrade
This commit is contained in:
martin 2011-09-29 18:48:34 -04:00
parent d93a9edcd2
commit 3c6692ebce
4 changed files with 29 additions and 5 deletions

View file

@ -0,0 +1,23 @@
<?php
namespace DoctrineMigrations;
use Doctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
class Version20110929184401 extends AbstractMigration
{
public function up(Schema $schema)
{
$cc_component = $schema->createTable('cc_component');
$cc_component->addColumn('name', 'string', array('length' => 32));
$cc_component->addColumn('ip', 'string', array('length' => 18));
$cc_component->setPrimaryKey(array('name'));
}
public function down(Schema $schema)
{
}
}