mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
5 changed files with 14 additions and 27 deletions
@ -0,0 +1,8 @@ |
|||
-- AlterEnum |
|||
BEGIN; |
|||
CREATE TYPE "public"."Type_new" AS ENUM ('BUY', 'DIVIDEND', 'FEE', 'INTEREST', 'LIABILITY', 'SELL'); |
|||
ALTER TABLE "public"."Order" ALTER COLUMN "type" TYPE "public"."Type_new" USING ("type"::text::"public"."Type_new"); |
|||
ALTER TYPE "public"."Type" RENAME TO "Type_old"; |
|||
ALTER TYPE "public"."Type_new" RENAME TO "Type"; |
|||
DROP TYPE "public"."Type_old"; |
|||
COMMIT; |
@ -1,20 +0,0 @@ |
|||
{ |
|||
"meta": { |
|||
"date": "2023-02-05T00:00:00.000Z", |
|||
"version": "dev" |
|||
}, |
|||
"activities": [ |
|||
{ |
|||
"accountId": null, |
|||
"comment": null, |
|||
"fee": 0, |
|||
"quantity": 1, |
|||
"type": "ITEM", |
|||
"unitPrice": 500000, |
|||
"currency": "USD", |
|||
"dataSource": "MANUAL", |
|||
"date": "2022-01-01T00:00:00.000Z", |
|||
"symbol": "Penthouse Apartment" |
|||
} |
|||
] |
|||
} |
Loading…
Reference in new issue