forked from CGM_Public/pretix_original
Fix duplicate key on SQLite (#4038)
* Fix duplicate key on SQLite * Update migration
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
# Generated by Django 4.2.10 on 2024-04-02 15:16
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("pretixbase", "0259_team_require_2fa"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterIndexTogether(
|
||||||
|
name="reusablemedium",
|
||||||
|
index_together=set(),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -122,7 +122,6 @@ class ReusableMedium(LoggedModel):
|
|||||||
class Meta:
|
class Meta:
|
||||||
unique_together = (("identifier", "type", "organizer"),)
|
unique_together = (("identifier", "type", "organizer"),)
|
||||||
indexes = [
|
indexes = [
|
||||||
models.Index(fields=("identifier", "type", "organizer")),
|
|
||||||
models.Index(fields=("updated", "id")),
|
models.Index(fields=("updated", "id")),
|
||||||
]
|
]
|
||||||
ordering = "identifier", "type", "organizer"
|
ordering = "identifier", "type", "organizer"
|
||||||
|
|||||||
Reference in New Issue
Block a user