feat: move stream liquisoap status to pref table

This commit is contained in:
jo 2022-08-06 19:57:13 +02:00 committed by Kyle Robbertze
parent 6c59ff588b
commit 2b533d4724
6 changed files with 54 additions and 75 deletions

View file

@ -0,0 +1,29 @@
# pylint: disable=invalid-name
from django.db import migrations
from ._migrations import legacy_migration_factory
UP = """
delete from cc_stream_setting
where "keyname" like '%_liquidsoap_error';
"""
DOWN = """
delete from cc_pref
where "keystr" like 'stream_liquidsoap_status:%';
"""
class Migration(migrations.Migration):
dependencies = [
("legacy", "0037_3_0_0_alpha_14_1"),
]
operations = [
migrations.RunPython(
code=legacy_migration_factory(
target="3.0.0-alpha.14.2",
sql=UP,
)
)
]

View file

@ -1 +1 @@
LEGACY_SCHEMA_VERSION = "3.0.0-alpha.14.1"
LEGACY_SCHEMA_VERSION = "3.0.0-alpha.14.2"