Add db up/downgrade script for album_override field

This commit is contained in:
Lucas Bickel 2017-03-17 14:36:28 +01:00
parent a2eb4b2297
commit d68c95b144
3 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1 @@
ALTER TABLE imported_podcast DROP COLUMN IF EXISTS album_override;

View file

@ -0,0 +1 @@
ALTER TABLE imported_podcast ADD COLUMN album_override boolean default 'f' NOT NULL;

View file

@ -506,3 +506,16 @@ class AirtimeUpgrader300alpha extends AirtimeUpgrader
return '3.0.0-alpha';
}
}
class AirtimeUpgrader300alpha1 extends AirtimeUpgrader
{
protected function getSupportedSchemaVersions() {
return array(
'3.0.0-alpha'
);
}
public function getNewVersion() {
return '3.0.0-alpha.1';
}
}