CC-2994: Upgrade: database change for SoundCloud upload
- done
This commit is contained in:
parent
caf8ce9bbf
commit
833918bda7
2 changed files with 26 additions and 1 deletions
25
install_minimal/DoctrineMigrations/Version20111102142811.php
Normal file
25
install_minimal/DoctrineMigrations/Version20111102142811.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace DoctrineMigrations;
|
||||
|
||||
use Doctrine\DBAL\Migrations\AbstractMigration,
|
||||
Doctrine\DBAL\Schema\Schema;
|
||||
|
||||
class Version20111102142811 extends AbstractMigration
|
||||
{
|
||||
public function up(Schema $schema)
|
||||
{
|
||||
// change 'soundcloud_upload' -> 'soundcloud_auto_upload_recorded_show' CC-2928
|
||||
$this->_addSql("UPDATE cc_pref SET keystr = 'soundcloud_auto_upload_recorded_show'
|
||||
WHERE keystr = 'soundcloud_upload'");
|
||||
|
||||
// add soundcloud_link_to_file
|
||||
$cc_files = $schema->getTable('cc_files');
|
||||
$cc_files->addColumn('soundcloud_link_to_file', 'string', array('length' => 255, 'notnull' => 0, 'default'=> NULL));
|
||||
}
|
||||
|
||||
public function down(Schema $schema)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
|
@ -144,7 +144,7 @@ class AirtimeDatabaseUpgrade{
|
|||
}
|
||||
}
|
||||
|
||||
UpgradeCommon::MigrateTablesToVersion(__DIR__, '20110929184401');
|
||||
UpgradeCommon::MigrateTablesToVersion(__DIR__, '20111102142811');
|
||||
}
|
||||
|
||||
private static function SetDefaultStreamSetting()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue