feat: move stream stats status to pref table
This commit is contained in:
parent
2b533d4724
commit
406d42323a
7 changed files with 57 additions and 35 deletions
29
api/libretime_api/legacy/migrations/0039_3_0_0_alpha_14_3.py
Normal file
29
api/libretime_api/legacy/migrations/0039_3_0_0_alpha_14_3.py
Normal 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 '%_listener_stat_error';
|
||||
"""
|
||||
|
||||
DOWN = """
|
||||
delete from cc_pref
|
||||
where "keystr" like 'stream_stats_status:%';
|
||||
"""
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("legacy", "0038_3_0_0_alpha_14_2"),
|
||||
]
|
||||
operations = [
|
||||
migrations.RunPython(
|
||||
code=legacy_migration_factory(
|
||||
target="3.0.0-alpha.14.3",
|
||||
sql=UP,
|
||||
)
|
||||
)
|
||||
]
|
|
@ -1 +1 @@
|
|||
LEGACY_SCHEMA_VERSION = "3.0.0-alpha.14.2"
|
||||
LEGACY_SCHEMA_VERSION = "3.0.0-alpha.14.3"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue