forked from botswana-harvard/edc-label
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
indexes, change Meta.unique_together to Meta.contraints
- Loading branch information
Showing
2 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
edc_label/migrations/0004_alter_zpllabeltemplates_options_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
), | ||
), | ||
] |
22 changes: 22 additions & 0 deletions
22
...label/migrations/0005_remove_zpllabeltemplates_edc_label_z_modifie_79a6b3_idx_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
), | ||
), | ||
] |