CC-3605 : Create 2.1 upgrades

This commit is contained in:
Naomi Aro 2012-04-10 18:38:31 +02:00
parent 90b7235e3d
commit baadfde1a9
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class Version20120410143340 extends AbstractMigration
//copy length property from our old view cc_playlisttimes
$this->_addSql("UPDATE cc_playlist AS pl SET length = (SELECT pt.length FROM cc_playlisttimes AS pt WHERE pt.id = pl.id)");
//drop the view as it is no longer needed.
$this->_addSql("DROP cc_playlisttimes");
$this->_addSql("DROP VIEW cc_playlisttimes");
$this->_addSql("ALTER TABLE cc_playlist DROP COLUMN state");
$this->_addSql("ALTER TABLE cc_playlist DROP COLUMN currentlyaccessing");