feat(ST-350): add Story.assignee_id schema migration

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Janpeter Visser 2026-04-26 16:03:29 +02:00
parent 30126ff8ff
commit fa34f680b3
3 changed files with 28 additions and 14 deletions

View file

@ -0,0 +1 @@
ALTER TYPE "TaskStatus" ADD VALUE 'REVIEW';

View file

@ -0,0 +1,8 @@
-- AlterTable
ALTER TABLE "stories" ADD COLUMN "assignee_id" TEXT;
-- CreateIndex
CREATE INDEX "stories_sprint_id_assignee_id_idx" ON "stories"("sprint_id", "assignee_id");
-- AddForeignKey
ALTER TABLE "stories" ADD CONSTRAINT "stories_assignee_id_fkey" FOREIGN KEY ("assignee_id") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE;