Skip to content

Commit

Permalink
AB#1083 Fix dbLoad of dev.data
Browse files Browse the repository at this point in the history
  • Loading branch information
gjvoosten committed May 30, 2024
1 parent 3cbe6d6 commit 46e4976
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions insertBaseData-psql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 46e4976

Please sign in to comment.