Skip to content

Commit

Permalink
feat: reply message
Browse files Browse the repository at this point in the history
  • Loading branch information
aseerkt committed Jul 30, 2024
1 parent 67321be commit 64f1b11
Show file tree
Hide file tree
Showing 40 changed files with 2,078 additions and 300 deletions.
1 change: 1 addition & 0 deletions server/drizzle/0002_dizzy_donald_blake.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "messages" ADD COLUMN "is_deleted" boolean DEFAULT false;
6 changes: 6 additions & 0 deletions server/drizzle/0003_brave_liz_osborn.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE "messages" ADD COLUMN "parent_message_id" bigint;--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "messages" ADD CONSTRAINT "messages_parent_message_id_messages_id_fk" FOREIGN KEY ("parent_message_id") REFERENCES "public"."messages"("id") ON DELETE no action ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
Loading

0 comments on commit 64f1b11

Please sign in to comment.