Skip to content

Commit

Permalink
indexes, change Meta.unique_together to Meta.contraints
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Dec 5, 2023
1 parent 1a6f8e9 commit fd660d8
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Generated by Django 4.2.7 on 2023-12-03 00:22

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("edc_label", "0003_alter_zpllabeltemplates_device_created_and_more"),
]

operations = [
migrations.AlterModelOptions(
name="zpllabeltemplates",
options={
"default_manager_name": "objects",
"default_permissions": (
"add",
"change",
"delete",
"view",
"export",
"import",
),
"verbose_name": "Label template",
"verbose_name_plural": "Label templates",
},
),
migrations.AddField(
model_name="zpllabeltemplates",
name="locale_created",
field=models.CharField(
blank=True,
help_text="Auto-updated by Modeladmin",
max_length=10,
null=True,
verbose_name="Locale created",
),
),
migrations.AddField(
model_name="zpllabeltemplates",
name="locale_modified",
field=models.CharField(
blank=True,
help_text="Auto-updated by Modeladmin",
max_length=10,
null=True,
verbose_name="Locale modified",
),
),
migrations.AddIndex(
model_name="zpllabeltemplates",
index=models.Index(
fields=["-modified", "-created"], name="edc_label_z_modifie_79a6b3_idx"
),
),
migrations.AddIndex(
model_name="zpllabeltemplates",
index=models.Index(
fields=["user_modified", "user_created"],
name="edc_label_z_user_mo_9865fd_idx",
),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 4.2.7 on 2023-12-04 02:32

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("edc_label", "0004_alter_zpllabeltemplates_options_and_more"),
]

operations = [
migrations.RemoveIndex(
model_name="zpllabeltemplates",
name="edc_label_z_modifie_79a6b3_idx",
),
migrations.AddIndex(
model_name="zpllabeltemplates",
index=models.Index(
fields=["modified", "created"], name="edc_label_z_modifie_038fe9_idx"
),
),
]

0 comments on commit fd660d8

Please sign in to comment.