From c5ce0c9d15d3f16af181663145058d42b041267e Mon Sep 17 00:00:00 2001 From: Fabio Roberto Vitello <fabio.vitello@inaf.it> Date: Mon, 30 Mar 2020 09:31:10 +0200 Subject: [PATCH] Revert 0002_populate.py --- SAS/TMSS/src/tmss/tmssapp/migrations/0002_populate.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SAS/TMSS/src/tmss/tmssapp/migrations/0002_populate.py b/SAS/TMSS/src/tmss/tmssapp/migrations/0002_populate.py index 939098dbcdc..91ceea13267 100644 --- a/SAS/TMSS/src/tmss/tmssapp/migrations/0002_populate.py +++ b/SAS/TMSS/src/tmss/tmssapp/migrations/0002_populate.py @@ -9,4 +9,8 @@ class Migration(migrations.Migration): ('tmssapp', '0001_initial'), ] - operations = [ migrations.RunPython(populate_choices) ] + # Start SubTask id with 2 000 000 to avoid overlap with 'old' (test/production) OTDB + operations = [ migrations.RunSQL('ALTER SEQUENCE tmssapp_SubTask_id_seq RESTART WITH 2000000;'), + migrations.RunPython(populate_choices), + migrations.RunPython(populate_misc), + migrations.RunPython(populate_lofar_json_schemas) ] -- GitLab