feat(ST-350): add Story.assignee_id schema migration
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
30126ff8ff
commit
fa34f680b3
3 changed files with 28 additions and 14 deletions
|
|
@ -0,0 +1 @@
|
|||
ALTER TYPE "TaskStatus" ADD VALUE 'REVIEW';
|
||||
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue