Skip to content

Commit 5a5e7ed

Browse files
committed
fix: do not allow member_id FK to be null on member_password table (#2096)
* fix: do not allow member_id FK to be null on member_password table * chore(style): run auto formating
1 parent cc4eba6 commit 5a5e7ed

5 files changed

Lines changed: 5847 additions & 2532 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
DROP VIEW "public"."members_view";--> statement-breakpoint
2+
ALTER TABLE "member_password" ALTER COLUMN "member_id" SET NOT NULL;--> statement-breakpoint
3+
CREATE VIEW "public"."members_view" AS (select "id", "name", "email", "extra", "type", "created_at", "updated_at", "user_agreements_date", "enable_save_actions", "last_authenticated_at", "is_validated", "marketing_emails_subscribed_at" from "account" where ("account"."type" = 'individual' and "account"."email" is not null));

0 commit comments

Comments
 (0)