mirror of https://github.com/ghostfolio/ghostfolio
Thomas Kaul
4 months ago
committed by
GitHub
16 changed files with 71 additions and 20 deletions
@ -0,0 +1,11 @@ |
|||||
|
-- DropIndex |
||||
|
DROP INDEX "Tag_name_key"; |
||||
|
|
||||
|
-- AlterTable |
||||
|
ALTER TABLE "Tag" ADD COLUMN "userId" TEXT; |
||||
|
|
||||
|
-- CreateIndex |
||||
|
CREATE UNIQUE INDEX "Tag_name_userId_key" ON "Tag"("name", "userId"); |
||||
|
|
||||
|
-- AddForeignKey |
||||
|
ALTER TABLE "Tag" ADD CONSTRAINT "Tag_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; |
Loading…
Reference in new issue