Skip to content

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

Feature/add database migration to reset account type in account table (#2602)

Thomas Kaul669f1fb60c93
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 49f6dd8b7e..dce838331c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## Unreleased
+
+### Added
+
+- Added a data migration to set `accountType` to `NULL` in the account database table
+
## 2.18.0 - 2023-11-05
### Added
diff --git a/prisma/migrations/20231105135400_set_value_of_account_type_to_null_in_account/migration.sql b/prisma/migrations/20231105135400_set_value_of_account_type_to_null_in_account/migration.sql
new file mode 100644
index 0000000000..d22789bc74
--- /dev/null
+++ b/prisma/migrations/20231105135400_set_value_of_account_type_to_null_in_account/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+UPDATE "Account" SET "accountType" = NULL;