mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
4 changed files with 25 additions and 1 deletions
@ -0,0 +1,16 @@ |
|||
-- CreateTable |
|||
CREATE TABLE "_UserWatchlist" ( |
|||
"A" TEXT NOT NULL, |
|||
"B" TEXT NOT NULL, |
|||
|
|||
CONSTRAINT "_UserWatchlist_AB_pkey" PRIMARY KEY ("A","B") |
|||
); |
|||
|
|||
-- CreateIndex |
|||
CREATE INDEX "_UserWatchlist_B_index" ON "_UserWatchlist"("B"); |
|||
|
|||
-- AddForeignKey |
|||
ALTER TABLE "_UserWatchlist" ADD CONSTRAINT "_UserWatchlist_A_fkey" FOREIGN KEY ("A") REFERENCES "SymbolProfile"("id") ON DELETE CASCADE ON UPDATE CASCADE; |
|||
|
|||
-- AddForeignKey |
|||
ALTER TABLE "_UserWatchlist" ADD CONSTRAINT "_UserWatchlist_B_fkey" FOREIGN KEY ("B") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; |
@ -1,3 +1,3 @@ |
|||
# Please do not edit this file manually |
|||
# It should be added in your version-control system (e.g., Git) |
|||
provider = "postgresql" |
|||
provider = "postgresql" |
|||
|
Loading…
Reference in new issue