mirror of https://github.com/ghostfolio/ghostfolio
Thomas Kaul
3 years ago
committed by
GitHub
5 changed files with 26 additions and 10 deletions
@ -0,0 +1,2 @@ |
|||
-- AlterTable |
|||
ALTER TABLE "Order" ALTER COLUMN "dataSource" DROP NOT NULL; |
@ -0,0 +1,2 @@ |
|||
-- AlterTable |
|||
ALTER TABLE "Order" ALTER COLUMN "symbol" DROP NOT NULL; |
@ -0,0 +1,8 @@ |
|||
-- DropForeignKey |
|||
ALTER TABLE "Order" DROP CONSTRAINT "Order_symbolProfileId_fkey"; |
|||
|
|||
-- AlterTable |
|||
ALTER TABLE "Order" ALTER COLUMN "symbolProfileId" SET NOT NULL; |
|||
|
|||
-- AddForeignKey |
|||
ALTER TABLE "Order" ADD CONSTRAINT "Order_symbolProfileId_fkey" FOREIGN KEY ("symbolProfileId") REFERENCES "SymbolProfile"("id") ON DELETE RESTRICT ON UPDATE CASCADE; |
Loading…
Reference in new issue