diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cfbf3cc7f..8353038c94 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 the `SPLIT` activity type to the database schema as a foundation for upcoming stock split support + ### Changed - Deprecated `firstOrderDate` in favor of `dateOfFirstActivity` in the `GET api/v2/portfolio/performance` endpoint diff --git a/prisma/migrations/20260726075759_added_split_activity_type/migration.sql b/prisma/migrations/20260726075759_added_split_activity_type/migration.sql new file mode 100644 index 0000000000..618c241b84 --- /dev/null +++ b/prisma/migrations/20260726075759_added_split_activity_type/migration.sql @@ -0,0 +1,2 @@ +-- AlterEnum +ALTER TYPE "Type" ADD VALUE 'SPLIT'; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 733399506d..f596b24fe2 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -379,6 +379,7 @@ enum Type { INTEREST LIABILITY SELL + SPLIT } enum ViewMode {