Skip to content

Commit 17c4490

Browse files
committed
fix: enable database migrations for CI tests
1 parent fb65dca commit 17c4490

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drizzle/0000_crazy_medusa.sql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
-- Current sql file was generated after introspecting the database
2-
-- If you want to run this migration please uncomment this code before executing migrations
3-
/*
2+
-- Migration uncommented and ready to run
43
CREATE TABLE "file_attachments" (
54
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
65
"note_id" uuid,
@@ -61,5 +60,4 @@ ALTER TABLE "folders" ADD CONSTRAINT "folders_user_id_users_id_fk" FOREIGN KEY (
6160
ALTER TABLE "folders" ADD CONSTRAINT "folders_parent_id_folders_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."folders"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
6261
ALTER TABLE "notes" ADD CONSTRAINT "notes_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
6362
ALTER TABLE "notes" ADD CONSTRAINT "notes_folder_id_folders_id_fk" FOREIGN KEY ("folder_id") REFERENCES "public"."folders"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
64-
CREATE INDEX "idx_file_attachments_note_id" ON "file_attachments" USING btree ("note_id" uuid_ops);
65-
*/
63+
CREATE INDEX "idx_file_attachments_note_id" ON "file_attachments" USING btree ("note_id" uuid_ops);

0 commit comments

Comments
 (0)