Skip to content

Commit

Permalink
BHBC-2185: Adjust system user guid migration (#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickPhura authored Jan 31, 2023
1 parent bb131b4 commit 081d158
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ export async function up(knex: Knex): Promise<void> {
SET search_path = ${DB_SCHEMA};
ALTER TABLE system_user ALTER COLUMN user_guid DROP NOT NULL;
UPDATE system_user set user_guid = null where user_guid = 'default_guid';
CREATE UNIQUE INDEX user_guid_uk1 ON system_user (user_guid);
CREATE UNIQUE INDEX system_user_uk1 ON system_user (user_guid);
SET search_path = ${DB_SCHEMA_DAPI_V1};
Expand Down

0 comments on commit 081d158

Please sign in to comment.