summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-04-15 09:02:53 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-04-15 09:02:53 (GMT)
commit46f56b3808b76ab297d497f4b0f53e80e5d92d3b (patch)
tree5e21a8f709d8ae2d3749dced75da256d3b98a22d
parentc8de0807ac7ea34b5762d96d15d5e2b78ae6b3fb (diff)
downloadpasserelle-atreal-openads-wip/39544.zip
passerelle-atreal-openads-wip/39544.tar.gz
passerelle-atreal-openads-wip/39544.tar.bz2
misc: move AddIndex to end of 0002 migration (#39544)wip/39544
Automatic generation does not sort AddIndex for manual indexes correctly with respect to Remove/AddField.
-rw-r--r--atreal_openads/migrations/0002_auto_20200415_0341.py64
1 files changed, 32 insertions, 32 deletions
diff --git a/atreal_openads/migrations/0002_auto_20200415_0341.py b/atreal_openads/migrations/0002_auto_20200415_0341.py
index 3f63157..695b010 100644
--- a/atreal_openads/migrations/0002_auto_20200415_0341.py
+++ b/atreal_openads/migrations/0002_auto_20200415_0341.py
@@ -171,38 +171,6 @@ class Migration(migrations.Migration):
name='upload_status',
field=models.CharField(choices=[('pending', 'Pending'), ('uploading', 'Uploading'), ('failed', 'Failed'), ('success', 'Success')], default='pending', max_length=10, verbose_name='Upload status'),
),
- migrations.AddIndex(
- model_name='forwardfile',
- index=models.Index(fields=['connecteur'], name='ff_connecteur_idx'),
- ),
- migrations.AddIndex(
- model_name='forwardfile',
- index=models.Index(fields=['collectivite'], name='ff_collectivite_idx'),
- ),
- migrations.AddIndex(
- model_name='forwardfile',
- index=models.Index(fields=['numero_demande', 'numero_dossier'], name='ff_deman_doss_idx'),
- ),
- migrations.AddIndex(
- model_name='forwardfile',
- index=models.Index(fields=['numero_demande'], name='ff_demande_idx'),
- ),
- migrations.AddIndex(
- model_name='forwardfile',
- index=models.Index(fields=['numero_dossier'], name='ff_dossier_idx'),
- ),
- migrations.AddIndex(
- model_name='forwardfile',
- index=models.Index(fields=['orig_filename'], name='ff_filename_idx'),
- ),
- migrations.AddIndex(
- model_name='forwardfile',
- index=models.Index(fields=['upload_status'], name='ff_status_idx'),
- ),
- migrations.AddIndex(
- model_name='forwardfile',
- index=models.Index(fields=['last_update_datetime'], name='ff_last_up_dt_idx'),
- ),
migrations.AddField(
model_name='guichet',
name='collectivite',
@@ -238,4 +206,36 @@ class Migration(migrations.Migration):
name='collectivite',
unique_together=set([('connecteur', 'openADS_id')]),
),
+ migrations.AddIndex(
+ model_name='forwardfile',
+ index=models.Index(fields=['connecteur'], name='ff_connecteur_idx'),
+ ),
+ migrations.AddIndex(
+ model_name='forwardfile',
+ index=models.Index(fields=['collectivite'], name='ff_collectivite_idx'),
+ ),
+ migrations.AddIndex(
+ model_name='forwardfile',
+ index=models.Index(fields=['numero_demande', 'numero_dossier'], name='ff_deman_doss_idx'),
+ ),
+ migrations.AddIndex(
+ model_name='forwardfile',
+ index=models.Index(fields=['numero_demande'], name='ff_demande_idx'),
+ ),
+ migrations.AddIndex(
+ model_name='forwardfile',
+ index=models.Index(fields=['numero_dossier'], name='ff_dossier_idx'),
+ ),
+ migrations.AddIndex(
+ model_name='forwardfile',
+ index=models.Index(fields=['orig_filename'], name='ff_filename_idx'),
+ ),
+ migrations.AddIndex(
+ model_name='forwardfile',
+ index=models.Index(fields=['upload_status'], name='ff_status_idx'),
+ ),
+ migrations.AddIndex(
+ model_name='forwardfile',
+ index=models.Index(fields=['last_update_datetime'], name='ff_last_up_dt_idx'),
+ ),
]