Remove duplicate sql from existing lines and update Upgrades.php
This commit is contained in:
parent
bd364a00fc
commit
6f9ce404a8
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue