From 669f1fb60c936d956a57bc768a6b9f25bc5243bf Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 5 Nov 2023 18:31:16 +0100 Subject: [PATCH] Feature/add database migration to reset account type in account table (#2602) * Set accountType to NULL * Update changelog --- CHANGELOG.md | 6 ++++++ .../migration.sql | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 prisma/migrations/20231105135400_set_value_of_account_type_to_null_in_account/migration.sql diff --git a/CHANGELOG.md b/CHANGELOG.md index 49f6dd8b7..dce838331 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 000000000..d22789bc7 --- /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;