From d1617f2d87530ae8abe67ab59e8e5408d8b352a9 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 29 Feb 2024 20:50:44 +0100 Subject: [PATCH] Feature/add index for is excluded to account database table (#3067) * Add index for isExcluded to account database table * Update changelog --- CHANGELOG.md | 4 ++++ .../migration.sql | 2 ++ prisma/schema.prisma | 1 + 3 files changed, 7 insertions(+) create mode 100644 prisma/migrations/20240229191929_added_index_for_is_excluded_to_account/migration.sql diff --git a/CHANGELOG.md b/CHANGELOG.md index 55a80a9f..633740aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Added an index for `isExcluded` to the account database table + ### Changed - Improved the activities import by `isin` in the _Yahoo Finance_ service diff --git a/prisma/migrations/20240229191929_added_index_for_is_excluded_to_account/migration.sql b/prisma/migrations/20240229191929_added_index_for_is_excluded_to_account/migration.sql new file mode 100644 index 00000000..70408fff --- /dev/null +++ b/prisma/migrations/20240229191929_added_index_for_is_excluded_to_account/migration.sql @@ -0,0 +1,2 @@ +-- CreateIndex +CREATE INDEX "Account_isExcluded_idx" ON "Account"("isExcluded"); diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 29ebcda2..df0f15e9 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -44,6 +44,7 @@ model Account { @@id([id, userId]) @@index([currency]) @@index([id]) + @@index([isExcluded]) @@index([name]) @@index([userId]) }