Skip to content

Commit 5558153

Browse files
committed
feat: add comments functionality with resource association in database schema
1 parent 2cb9181 commit 5558153

File tree

5 files changed

+981
-2
lines changed

5 files changed

+981
-2
lines changed

migrations/0003_quiet_swarm.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ALTER TABLE "comments" ADD COLUMN "resource_id" uuid NOT NULL;--> statement-breakpoint
2+
ALTER TABLE "comments" ADD COLUMN "resource_type" varchar(50) NOT NULL;--> statement-breakpoint
3+
ALTER TABLE "comments" DROP COLUMN "commentable_type";--> statement-breakpoint
4+
ALTER TABLE "comments" DROP COLUMN "commentable_id";

0 commit comments

Comments
 (0)