mirror of https://github.com/ghostfolio/ghostfolio
Thomas Kaul
3 years ago
committed by
GitHub
5 changed files with 89 additions and 24 deletions
@ -0,0 +1,15 @@ |
|||
-- CreateTable |
|||
CREATE TABLE "SymbolProfileOverrides" ( |
|||
"assetClass" "AssetClass", |
|||
"assetSubClass" "AssetSubClass", |
|||
"countries" JSONB, |
|||
"name" TEXT, |
|||
"sectors" JSONB, |
|||
"symbolProfileId" TEXT NOT NULL, |
|||
"updatedAt" TIMESTAMP(3) NOT NULL, |
|||
|
|||
CONSTRAINT "SymbolProfileOverrides_pkey" PRIMARY KEY ("symbolProfileId") |
|||
); |
|||
|
|||
-- AddForeignKey |
|||
ALTER TABLE "SymbolProfileOverrides" ADD CONSTRAINT "SymbolProfileOverrides_symbolProfileId_fkey" FOREIGN KEY ("symbolProfileId") REFERENCES "SymbolProfile"("id") ON DELETE RESTRICT ON UPDATE CASCADE; |
@ -0,0 +1,2 @@ |
|||
-- AlterEnum |
|||
ALTER TYPE "AssetSubClass" ADD VALUE 'COMMODITY'; |
Loading…
Reference in new issue