From 04d1355b409594ad15cc4eb003e0dd217b7b5eca Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Thu, 7 Oct 2021 11:08:19 +0200 Subject: [PATCH] TMSS-1081: reverted the recreated migrations --- SAS/TMSS/backend/src/tmss/tmssapp/migrations/0001_initial.py | 4 +--- SAS/TMSS/backend/src/tmss/tmssapp/migrations/0002_populate.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/migrations/0001_initial.py b/SAS/TMSS/backend/src/tmss/tmssapp/migrations/0001_initial.py index 1640de6cbcf..5d19ced6b76 100644 --- a/SAS/TMSS/backend/src/tmss/tmssapp/migrations/0001_initial.py +++ b/SAS/TMSS/backend/src/tmss/tmssapp/migrations/0001_initial.py @@ -775,7 +775,6 @@ class Migration(migrations.Migration): ('updated_at', models.DateTimeField(auto_now=True, help_text='Moment of last object update.')), ('name', models.CharField(help_text='Human-readable name of this object.', max_length=128)), ('description', models.CharField(blank=True, default='', help_text='A longer description of this object.', max_length=255)), - ('short_description', models.CharField(blank=True, default='', help_text='A short description of this task, usually the name of the target and abbreviated task type.', max_length=32)), ('specifications_doc', django.contrib.postgres.fields.jsonb.JSONField(help_text='Schedulings for this task (IMMUTABLE).')), ('output_pinned', models.BooleanField(default=False, help_text='True if the output of this task is pinned to disk, that is, forbidden to be removed.')), ], @@ -799,7 +798,6 @@ class Migration(migrations.Migration): ('updated_at', models.DateTimeField(auto_now=True, help_text='Moment of last object update.')), ('name', models.CharField(help_text='Human-readable name of this object.', max_length=128)), ('description', models.CharField(blank=True, default='', help_text='A longer description of this object.', max_length=255)), - ('short_description', models.CharField(blank=True, default='', help_text='A short description of this task, usually the name of the target and abbreviated task type.', max_length=32)), ('specifications_doc', django.contrib.postgres.fields.jsonb.JSONField(help_text='Specifications for this task.')), ('output_pinned', models.BooleanField(default=False, help_text='True if the output of this task is pinned to disk, that is, forbidden to be removed.')), ], @@ -1308,7 +1306,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='project', name='project_state', - field=models.ForeignKey(default='opened', help_text='The state this project is in.', on_delete=django.db.models.deletion.PROTECT, to='tmssapp.ProjectState'), + field=models.ForeignKey(default='opened', help_text='The scheduling state this project is in.', on_delete=django.db.models.deletion.PROTECT, to='tmssapp.ProjectState'), ), migrations.AddField( model_name='filesystem', diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/migrations/0002_populate.py b/SAS/TMSS/backend/src/tmss/tmssapp/migrations/0002_populate.py index 663ac31ef23..8c9cb85cebe 100644 --- a/SAS/TMSS/backend/src/tmss/tmssapp/migrations/0002_populate.py +++ b/SAS/TMSS/backend/src/tmss/tmssapp/migrations/0002_populate.py @@ -71,7 +71,6 @@ class Migration(migrations.Migration): IF OLD.specifications_doc <> NEW.specifications_doc OR OLD.name <> NEW.name OR OLD.description <> NEW.description OR - OLD.short_description <> NEW.short_description OR OLD.specifications_template_id <> NEW.specifications_template_id OR OLD.scheduling_unit_blueprint_id <> NEW.scheduling_unit_blueprint_id THEN RAISE EXCEPTION 'ILLEGAL UPDATE OF IMMUTABLE BLUEPRINT FIELD'; -- GitLab