From 46e49761d95880990ddb3fbb19aee69b0d8e8e83 Mon Sep 17 00:00:00 2001 From: Gertjan van Oosten Date: Thu, 23 May 2024 10:41:13 +0200 Subject: [PATCH] AB#1083 Fix dbLoad of dev.data --- insertBaseData-psql.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/insertBaseData-psql.sql b/insertBaseData-psql.sql index 1d9450f5eb..1314cdb973 100644 --- a/insertBaseData-psql.sql +++ b/insertBaseData-psql.sql @@ -10,8 +10,6 @@ TRUNCATE TABLE "comments" CASCADE; TRUNCATE TABLE "customSensitiveInformation" CASCADE; TRUNCATE TABLE "emailAddresses" CASCADE; TRUNCATE TABLE "jobHistory" CASCADE; --- Countries are inserted by the migrations! -DELETE FROM "locations" WHERE type != 'PAC'; TRUNCATE TABLE "noteRelatedObjects" CASCADE; TRUNCATE TABLE "notes" CASCADE; TRUNCATE TABLE "organizationAdministrativePositions" CASCADE; @@ -35,6 +33,9 @@ TRUNCATE TABLE "taskTaskedOrganizations" CASCADE; TRUNCATE TABLE "tasks" CASCADE; TRUNCATE TABLE "userActivities" CASCADE; +-- Countries are inserted by the migrations! +DELETE FROM "locations" WHERE type != 'PAC'; + -- Create people INSERT INTO people (uuid, name, status, "phoneNumber", rank, biography, "user", "domainUsername", "openIdSubject", "countryUuid", gender, "endOfTourDate", "createdAt", "updatedAt") VALUES -- Advisors