feat: drop cc_stream_setting table

- Remove the previously deprecated cc_stream_setting table.
This commit is contained in:
jo 2022-09-12 14:30:46 +02:00 committed by Kyle Robbertze
parent 3d124eba7e
commit 8a6b5907be
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,33 @@
# pylint: disable=invalid-name
from django.db import migrations
from ._migrations import legacy_migration_factory
UP = """
drop table if exists "cc_stream_setting" cascade;
"""
DOWN = """
create table "cc_stream_setting"
(
"keyname" varchar(64) not null,
"value" varchar(255),
"type" varchar(16) not null,
primary key ("keyname")
);
"""
class Migration(migrations.Migration):
dependencies = [
("legacy", "0040_bump_legacy_schema_version"),
]
operations = [
migrations.RunPython(
code=legacy_migration_factory(
target="41",
sql=UP,
)
)
]

View File

@ -1 +1,2 @@
LEGACY_SCHEMA_VERSION = "3.0.0-beta.0.1"
# The schema version is defined using the migration file prefix number
LEGACY_SCHEMA_VERSION = "41"