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
ALTERTABLE"users" RENAME TO "user";--> statement-breakpoint
2
+
ALTERTABLE"user" DROP CONSTRAINT"users_email_unique";--> statement-breakpoint
3
+
ALTERTABLE"account" DROP CONSTRAINT"account_user_id_users_id_fk";
4
+
--> statement-breakpoint
5
+
ALTERTABLE"categories" DROP CONSTRAINT"categories_ownerId_users_id_fk";
6
+
--> statement-breakpoint
7
+
ALTERTABLE"posts" DROP CONSTRAINT"posts_authorId_users_id_fk";
8
+
--> statement-breakpoint
9
+
ALTERTABLE"session" DROP CONSTRAINT"session_user_id_users_id_fk";
10
+
--> statement-breakpoint
11
+
ALTERTABLE"account" ADD CONSTRAINT"account_user_id_user_id_fk"FOREIGN KEY ("user_id") REFERENCES"public"."user"("id") ON DELETE cascadeONUPDATE no action;--> statement-breakpoint
12
+
ALTERTABLE"categories" ADD CONSTRAINT"categories_ownerId_user_id_fk"FOREIGN KEY ("ownerId") REFERENCES"public"."user"("id") ON DELETE no action ONUPDATE no action;--> statement-breakpoint
13
+
ALTERTABLE"posts" ADD CONSTRAINT"posts_authorId_user_id_fk"FOREIGN KEY ("authorId") REFERENCES"public"."user"("id") ON DELETE no action ONUPDATE no action;--> statement-breakpoint
14
+
ALTERTABLE"session" ADD CONSTRAINT"session_user_id_user_id_fk"FOREIGN KEY ("user_id") REFERENCES"public"."user"("id") ON DELETE cascadeONUPDATE no action;--> statement-breakpoint
0 commit comments