Skip to content
Snippets Groups Projects
Commit 00bdf847 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Only depend on chronos if migration was already applied

parent b08a9271
No related branches found
No related tags found
1 merge request!1113Resolve "[3.0] Move Room from Chronos to Core"
Pipeline #103661 canceled
......@@ -17,7 +17,9 @@ class Migration(migrations.Migration):
]
if "aleksis.apps.chronos.apps.ChronosConfig" in settings.INSTALLED_APPS:
dependencies.append(('chronos', '0012_add_supervision_global_permission'))
recorder = migrations.recorder
if not recorder.MigrationRecorder.Migration.objects.filter(app="core", name="0046_add_room_model").exists():
dependencies.append(('chronos', '0012_add_supervision_global_permission'))
operations = [
migrations.CreateModel(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment