diff --git a/CHANGELOG.md b/CHANGELOG.md index d045aff6c..54b2309eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/prisma/migrations/20230217173323_removed_ghostfolio_from_data_source/migration.sql b/prisma/migrations/20230217173323_removed_ghostfolio_from_data_source/migration.sql new file mode 100644 index 000000000..ceaf9134f --- /dev/null +++ b/prisma/migrations/20230217173323_removed_ghostfolio_from_data_source/migration.sql @@ -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; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index ae5f29dee..937897a1d 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -206,7 +206,6 @@ enum AssetSubClass { enum DataSource { ALPHA_VANTAGE EOD_HISTORICAL_DATA - GHOSTFOLIO GOOGLE_SHEETS MANUAL RAPID_API