diff --git a/airtime_mvc/application/controllers/downgrade_sql/airtime_3.0.0-alpha.7/downgrade.sql b/airtime_mvc/application/controllers/downgrade_sql/airtime_3.0.0-alpha.7/downgrade.sql index 0f3ed4c24..1f562169c 100644 --- a/airtime_mvc/application/controllers/downgrade_sql/airtime_3.0.0-alpha.7/downgrade.sql +++ b/airtime_mvc/application/controllers/downgrade_sql/airtime_3.0.0-alpha.7/downgrade.sql @@ -1,5 +1 @@ ALTER TABLE cc_block ALTER COLUMN type SET DEFAULT 'static'; -ALTER TABLE podcast_episodes DROP COLUMN IF EXISTS episode_title; -ALTER TABLE podcast_episodes DROP COLUMN IF EXISTS episode_description; -ALTER TABLE cc_blockcriteria DROP COLUMN IF EXISTS criteriagroup; - diff --git a/airtime_mvc/application/controllers/upgrade_sql/airtime_3.0.0-alpha.7/upgrade.sql b/airtime_mvc/application/controllers/upgrade_sql/airtime_3.0.0-alpha.7/upgrade.sql index 5a644fbc8..08b362d0e 100644 --- a/airtime_mvc/application/controllers/upgrade_sql/airtime_3.0.0-alpha.7/upgrade.sql +++ b/airtime_mvc/application/controllers/upgrade_sql/airtime_3.0.0-alpha.7/upgrade.sql @@ -1,5 +1 @@ ALTER TABLE cc_block ALTER COLUMN type SET DEFAULT 'dynamic'; -ALTER TABLE podcast_episodes ADD COLUMN episode_title VARCHAR(4096); -ALTER TABLE podcast_episodes ADD COLUMN episode_description VARCHAR(4096); -ALTER TABLE cc_blockcriteria ADD COLUMN criteriagroup integer; - diff --git a/airtime_mvc/application/upgrade/Upgrades.php b/airtime_mvc/application/upgrade/Upgrades.php index b524431ae..3745e119b 100644 --- a/airtime_mvc/application/upgrade/Upgrades.php +++ b/airtime_mvc/application/upgrade/Upgrades.php @@ -532,6 +532,12 @@ class AirtimeUpgrader300alpha6 extends AirtimeUpgrader return '3.0.0-alpha.6'; } } +/** + * Class AirtimeUpgrader300alpha7 + * + * GH-#636 - https://github.com/LibreTime/libretime/pull/636 - Change dynamic smartblock to be default smartblock type + */ + class AirtimeUpgrader300alpha7 extends AirtimeUpgrader { @@ -540,9 +546,39 @@ class AirtimeUpgrader300alpha7 extends AirtimeUpgrader '3.0.0-alpha.6' ); } +/** + * Class AirtimeUpgrader300alpha7-1 + * + * GH-#659 - https://github.com/LibreTime/libretime/pull/659/ - Add description and title to podcast episodes database table + */ + + +class AirtimeUpgrader300alpha7-1 extends AirtimeUpgrader +{ + protected function getSupportedSchemaVersions() { + return array( + '3.0.0-alpha.7' + ); + } +/** + * Class AirtimeUpgrader300alpha7-2 + * + * GH-#704 - https://github.com/LibreTime/libretime/pull/704/ - Add criteria group to smartblock table to enable database to store separately + */ + + + +class AirtimeUpgrader300alpha7-2 extends AirtimeUpgrader +{ + protected function getSupportedSchemaVersions() { + return array( + '3.0.0-alpha.7.1' + ); + } + + public function getNewVersion() { - return '3.0.0-alpha.7'; + return '3.0.0-alpha.7.2'; } } -