feat(MED-85): fix delete company account error
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- user_id+account_id primary key -> separate id column for audit
|
||||
ALTER TABLE medreport.accounts_memberships DROP CONSTRAINT accounts_memberships_pkey;
|
||||
ALTER TABLE medreport.accounts_memberships ADD COLUMN id UUID DEFAULT gen_random_uuid();
|
||||
ALTER TABLE medreport.accounts_memberships ADD CONSTRAINT accounts_memberships_pkey PRIMARY KEY (id);
|
||||
ALTER TABLE medreport.accounts_memberships ADD CONSTRAINT unique_user_account UNIQUE (user_id, account_id);
|
||||
Reference in New Issue
Block a user