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]) }