You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 6, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: application/supabase/migrations/0000_skinny_dark_beast.sql
+1-12Lines changed: 1 addition & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -18,18 +18,7 @@ CREATE TABLE IF NOT EXISTS "users" (
18
18
"name"textNOT NULL,
19
19
"picture"textNOT NULL
20
20
);
21
-
--> statement-breakpoint
22
-
CREATETABLEIF NOT EXISTS "groups" (
23
-
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid(),
24
-
"name"textNOT NULL UNIQUE
25
-
);
26
-
--> statement-breakpoint
27
-
CREATETABLEIF NOT EXISTS "group_memberships" (
28
-
"user_id" uuid REFERENCES"users"("uid") ON DELETE CASCADE,
29
-
"group_id" uuid REFERENCES"groups"("id") ON DELETE CASCADE,
30
-
PRIMARY KEY ("user_id", "group_id")
31
-
);
32
-
--> statement-breakpoint
21
+
33
22
DO $$ BEGIN
34
23
ALTERTABLE"personas" ADD CONSTRAINT"personas_uid_users_uid_fk"FOREIGN KEY ("uid") REFERENCES"public"."users"("uid") ON DELETE no action ONUPDATE no action;
0 commit comments