mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Hotfix: Avoid infinite loop in migration at all cost
This commit is contained in:
@@ -1 +1 @@
|
||||
__version__ = "3.17.0"
|
||||
__version__ = "3.17.1"
|
||||
|
||||
@@ -4,7 +4,7 @@ from django.db import migrations
|
||||
|
||||
|
||||
def clean_duplicates(apps, schema_editor):
|
||||
while True:
|
||||
for i in range(100): # no infinite loops
|
||||
# Double subquery to avoid MySQL error 1093
|
||||
delete_options = """
|
||||
DELETE
|
||||
|
||||
Reference in New Issue
Block a user