diff --git a/SAS/TMSS/src/tmss/tmssapp/migrations/0002_populate.py b/SAS/TMSS/src/tmss/tmssapp/migrations/0002_populate.py index 939098dbcdc9894d9f2c90fa76dff95db7442ea9..91ceea132673e18cc1747f686b7c536c91d7557a 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) ]