fix: soft delete labels
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE "label" ADD COLUMN "deletedAt" timestamp;--> statement-breakpoint
|
||||
ALTER TABLE "label" ADD COLUMN "deletedBy" uuid;--> statement-breakpoint
|
||||
DO $$ BEGIN
|
||||
ALTER TABLE "label" ADD CONSTRAINT "label_deletedBy_user_id_fk" FOREIGN KEY ("deletedBy") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;
|
||||
EXCEPTION
|
||||
WHEN duplicate_object THEN null;
|
||||
END $$;
|
||||
2087
packages/db/migrations/meta/20250527203813_snapshot.json
Normal file
2087
packages/db/migrations/meta/20250527203813_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -15,6 +15,13 @@
|
||||
"when": 1747903068807,
|
||||
"tag": "20250522083748_AddEmailToWorkspaceMembers",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 2,
|
||||
"version": "7",
|
||||
"when": 1748378293342,
|
||||
"tag": "20250527203813_AddDeletedAtToLabel",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user