Skip to content

Commit

Permalink
fix: #1474 Remove duplicate user records in flyway (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
MCatherine1994 authored Jul 3, 2024
1 parent b792f33 commit b4f295f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
-- Update unique constraint in fam user table to be user type code and user guid

-- For production data, we need to remove the existing duplication user records
-- These two users in production seem to have a username change, so we have same user_guid but different user_name for them
-- Dev and Test environment will ignore the deletion
DELETE FROM app_fam.fam_user WHERE user_id=943;
DELETE FROM app_fam.fam_user WHERE user_id=2257;


DROP INDEX app_fam.fam_usr_uk;

CREATE UNIQUE INDEX fam_usr_uk ON app_fam.fam_user(user_type_code, user_guid);

0 comments on commit b4f295f

Please sign in to comment.