sintonia/install/DoctrineMigrations/Version20110402164819.php
naomiaro b97e79773b CC-2110 : Soundcloud file metadata
added show genre column, this is used instead of soundcloud default genre if set.
2011-04-02 17:09:37 -04:00

28 lines
688 B
PHP

<?php
namespace DoctrineMigrations;
use Doctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
class Version20110402164819 extends AbstractMigration
{
public function up(Schema $schema)
{
//start cc_show modifications
$show_table = $schema->getTable('cc_show');
$show_table->addColumn('genre', 'string', array('notnull' => 0, 'length' => 255, 'default' => ""));
//end cc_show modifications
}
public function down(Schema $schema)
{
//start cc_show modifications
$show_table = $schema->getTable('cc_show');
$show_table->dropColumn('genre');
//end cc_show modifications
}
}