feat(legacy): remove db allowed_cors_origins preference (#2095)

- Remove after deprecation in eb8e7b3415
This commit is contained in:
Jonas L 2022-10-11 13:38:31 +02:00 committed by GitHub
parent e54c8d22e1
commit cff98f2d23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 60 deletions

View file

@ -0,0 +1,26 @@
# pylint: disable=invalid-name
from django.db import migrations
from ._migrations import legacy_migration_factory
UP = """
delete from cc_pref
where "keystr" = 'allowed_cors_urls';
"""
DOWN = """"""
class Migration(migrations.Migration):
dependencies = [
("legacy", "0042_remove_stream_preferences"),
]
operations = [
migrations.RunPython(
code=legacy_migration_factory(
target="43",
sql=UP,
)
)
]

View file

@ -1,2 +1,2 @@
# The schema version is defined using the migration file prefix number
LEGACY_SCHEMA_VERSION = "42"
LEGACY_SCHEMA_VERSION = "43"