Feature/remove ghostfolio as data source type (#1717)

* Remove GHOSTFOLIO

* Update changelog
This commit is contained in:
Thomas Kaul 2023-02-17 19:19:16 +01:00 committed by GitHub
parent 85052bc9bc
commit 851401be1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Beautified the ETF names in the asset profile
- Removed the data source type `GHOSTFOLIO`
### Fixed

View File

@ -0,0 +1,9 @@
-- AlterEnum
BEGIN;
CREATE TYPE "DataSource_new" AS ENUM ('ALPHA_VANTAGE', 'EOD_HISTORICAL_DATA', 'GOOGLE_SHEETS', 'MANUAL', 'RAPID_API', 'YAHOO');
ALTER TABLE "MarketData" ALTER COLUMN "dataSource" TYPE "DataSource_new" USING ("dataSource"::text::"DataSource_new");
ALTER TABLE "SymbolProfile" ALTER COLUMN "dataSource" TYPE "DataSource_new" USING ("dataSource"::text::"DataSource_new");
ALTER TYPE "DataSource" RENAME TO "DataSource_old";
ALTER TYPE "DataSource_new" RENAME TO "DataSource";
DROP TYPE "DataSource_old";
COMMIT;

View File

@ -206,7 +206,6 @@ enum AssetSubClass {
enum DataSource {
ALPHA_VANTAGE
EOD_HISTORICAL_DATA
GHOSTFOLIO
GOOGLE_SHEETS
MANUAL
RAPID_API