From 20203ec33c173101b675e8a24c01c6148daa6489 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 9 Oct 2026 20:16:36 +0200 Subject: [PATCH] Task/remove unnecessary data source index of market data database table (#8063) * Remove data source index of market data database table * Update changelog --- CHANGELOG.md | 1 + .../migration.sql | 2 ++ prisma/schema.prisma | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 prisma/migrations/20261005010000_removed_index_for_data_source_from_market_data/migration.sql 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])