misc: move AddIndex to end of 0002 migration (#39544)
Automatic generation does not sort AddIndex for manual indexes correctly with respect to Remove/AddField.
This commit is contained in:
parent
c8de0807ac
commit
46f56b3808
|
@ -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'),
|
||||
),
|
||||
]
|
||||
|
|
Reference in New Issue