Add not null checks to wt_private_id, wt_scope_id, and wt_user_id (#284)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-08-19 21:45:46 -04:00
1 parent 9570897032
commit 6bf4a5ce38
8 files changed
+162 -64

No files matched your search

@@ -56,7 +56,7 @@ begin;
on delete cascade
on update cascade,
password_account_id wt_public_id not null,
password_conf_id wt_private_id not null,
password_conf_id wt_private_id,
-- NOTE(mgaffney): The password_method_id type is not wt_public_id because
-- the domain check is executed before the insert trigger which retrieves
-- the password_method_id causing an insert to fail.