From 7dbbb141dd3571909f9081c755170e5fee994b0e Mon Sep 17 00:00:00 2001 From: Martin Beracochea Date: Wed, 7 Feb 2024 21:33:41 +0000 Subject: [PATCH] Rename EBI Seach last_indexed fields --- emgapi/migrations/0017_auto_20240129_1401.py | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/emgapi/migrations/0017_auto_20240129_1401.py b/emgapi/migrations/0017_auto_20240129_1401.py index e8e9d380e..9bf204673 100644 --- a/emgapi/migrations/0017_auto_20240129_1401.py +++ b/emgapi/migrations/0017_auto_20240129_1401.py @@ -10,18 +10,15 @@ class Migration(migrations.Migration): ] operations = [ - migrations.RemoveField( + migrations.RenameField( model_name='analysisjob', - name='last_indexed', + old_name='last_indexed', + new_name='last_ebi_search_indexed', ), - migrations.RemoveField( + migrations.RenameField( model_name='study', - name='last_indexed', - ), - migrations.AddField( - model_name='analysisjob', - name='last_ebi_search_indexed', - field=models.DateTimeField(blank=True, db_column='LAST_EBI_SEARCH_INDEXED', help_text='Date at which this model was last included in an EBI Search initial/incremental index.', null=True), + old_name='last_indexed', + new_name='last_ebi_search_indexed', ), migrations.AddField( model_name='analysisjob', @@ -33,9 +30,4 @@ class Migration(migrations.Migration): name='mgx_accession', field=models.CharField(blank=True, db_column='MGX_ACCESSION', help_text='The Metagenomics Exchange accession.', max_length=10, null=True, unique=True), ), - migrations.AddField( - model_name='study', - name='last_ebi_search_indexed', - field=models.DateTimeField(blank=True, db_column='LAST_EBI_SEARCH_INDEXED', help_text='Date at which this model was last included in an EBI Search initial/incremental index.', null=True), - ), ]