Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Task/remove unnecessary data source index of market data database table (#8063)

Thomas Kaul20203ec33c17
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5dc8d7ee8c..81fba04fb8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Extended the user account deletion flow in the user settings of the user account page to users without a _Security Token_ within 14 days after the registration
- Improved the _Storybook_ stories of the account selector, accounts table, activities table and holdings table components
+- Removed an unnecessary index from the market data database table
- Refreshed the cryptocurrencies list
- Improved the language localization for Spanish (`es`)
diff --git a/prisma/migrations/20261005010000_removed_index_for_data_source_from_market_data/migration.sql b/prisma/migrations/20261005010000_removed_index_for_data_source_from_market_data/migration.sql
new file mode 100644
index 0000000000..afb7e1b0d8
--- /dev/null
+++ b/prisma/migrations/20261005010000_removed_index_for_data_source_from_market_data/migration.sql
@@ -0,0 +1,2 @@
+-- DropIndex
+DROP INDEX "MarketData_dataSource_idx";
diff --git a/prisma/schema.prisma b/prisma/schema.prisma
index 37a3506610..9690fbe47f 100644
--- a/prisma/schema.prisma
+++ b/prisma/schema.prisma
@@ -174,7 +174,6 @@ model MarketData {
symbol String
@@unique([dataSource, symbol, date])
- @@index([dataSource])
@@index([date])
@@index([state])
@@index([symbol])