Browse Source

Revert old cache versioning migrations to make build pass

rafalp 6 years ago
parent
commit
8762f23718

+ 9 - 1
misago/acl/migrations/0002_acl_version_tracker.py

@@ -1,6 +1,11 @@
 from django.db import migrations
 
 
+def register_acl_version_tracker(apps, schema_editor):
+    from misago.core.migrationutils import cachebuster_register_cache
+    cachebuster_register_cache(apps, "misago_acl")
+
+
 class Migration(migrations.Migration):
     """Superseded by 0004"""
 
@@ -9,4 +14,7 @@ class Migration(migrations.Migration):
         ('misago_core', '0001_initial'),
     ]
 
-    operations = []
+    operations = [
+        # FIXME: remove this operation
+        migrations.RunPython(register_acl_version_tracker),
+    ]

+ 9 - 1
misago/users/migrations/0003_bans_version_tracker.py

@@ -1,6 +1,11 @@
 from django.db import migrations
 
 
+def register_bans_version_tracker(apps, schema_editor):
+    from misago.core.migrationutils import cachebuster_register_cache
+    cachebuster_register_cache(apps, "misago_bans")
+
+
 class Migration(migrations.Migration):
     """Migration superseded by 0016"""
 
@@ -9,4 +14,7 @@ class Migration(migrations.Migration):
         ('misago_core', '0001_initial'),
     ]
 
-    operations = []
+    operations = [
+        # FIXME: remove this operation
+        migrations.RunPython(register_bans_version_tracker),
+    ]