Register and reversion update, add downgrade

This commit is contained in:
Lucas Bickel 2017-03-10 15:49:36 +01:00
parent 32a1a66378
commit a7d25e1960
4 changed files with 20 additions and 4 deletions

View File

@ -1 +1 @@
ALTER TABLE third_party_track_references ALTER COLUMN file_id SET NOT NULL;
ALTER TABLE third_party_track_references ALTER COLUMN file_id SET NOT NULL;

View File

@ -0,0 +1,3 @@
ALTER TABLE cc_show_instances DROP COLUMN IF EXISTS autoplaylist_built;
ALTER TABLE cc_show DROP COLUMN IF EXISTS has_autoplaylist;
ALTER TABLE cc_show DROP COLUMN IF EXISTS autoplaylist_id;

View File

@ -1,3 +1,3 @@
ALTER TABLE cc_show ADD COLUMN has_autoplaylist boolean default 'f' NOT NULL
ALTER TABLE cc_show ADD COLUMN autoplaylist_id integer DEFAULT NULL
ALTER TABLE cc_show_instances ADD COLUMN autoplaylist_built boolean default 'f' NOT NULL
ALTER TABLE cc_show ADD COLUMN has_autoplaylist boolean default 'f' NOT NULL;
ALTER TABLE cc_show ADD COLUMN autoplaylist_id integer DEFAULT NULL;
ALTER TABLE cc_show_instances ADD COLUMN autoplaylist_built boolean default 'f' NOT NULL;

View File

@ -501,3 +501,16 @@ class AirtimeUpgrader2516 extends AirtimeUpgrader
return '2.5.16';
}
}
class AirtimeUpgrader300alpha extends AirtimeUpgrader
{
protected function getSupportedSchemaVersions() {
return array(
'2.5.16'
);
}
public function getNewVersion() {
return '3.0.0-alpha';
}
}