File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 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
43CREATE 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 (
6160ALTER 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
6261ALTER 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
6362ALTER 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);
You can’t perform that action at this time.
0 commit comments