mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +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):
|
def clean_duplicates(apps, schema_editor):
|
||||||
while True:
|
for i in range(100): # no infinite loops
|
||||||
# Double subquery to avoid MySQL error 1093
|
# Double subquery to avoid MySQL error 1093
|
||||||
delete_options = """
|
delete_options = """
|
||||||
DELETE
|
DELETE
|
||||||
|
|||||||
Reference in New Issue
Block a user