Skip to content

Commit

Permalink
fix migration - invites sender_user_id null (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
alishakawaguchi authored Nov 10, 2023
1 parent ed8e1a0 commit 4fdb413
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ ALTER TABLE neosync_api.account_invites
ADD CONSTRAINT fk_invites_user_id FOREIGN KEY (sender_user_id)
REFERENCES neosync_api.users(id) ON DELETE SET NULL;

ALTER TABLE neosync_api.account_invites ALTER COLUMN sender_user_id SET NULL;
ALTER TABLE neosync_api.account_invites ALTER COLUMN sender_user_id DROP NOT NULL;

0 comments on commit 4fdb413

Please sign in to comment.