sintonia/install_minimal/DoctrineMigrations/Version20110713161043.php
James 931fb4db62 CC-2518: Auto install script for manual install
- install dir is renamed to install_minimal
- virtualenv command is moved to install script.
- need more work on install_full part
2011-07-19 17:30:23 -04:00

26 lines
No EOL
675 B
PHP

<?php
namespace DoctrineMigrations;
use Doctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
class Version20110713161043 extends AbstractMigration
{
public function up(Schema $schema)
{
//create cc_country table
$cc_country = $schema->createTable('cc_country');
$cc_country->addColumn('isocode', 'string', array('length' => 3));
$cc_country->addColumn('name', 'string', array('length' => 255));
$cc_country->setPrimaryKey(array('isocode'));
//end create cc_country table
}
public function down(Schema $schema)
{
$schema->dropTable('cc_country');
}
}