From 741556cedee52b0b4d89afec4fd0978d62446a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Manero?= Date: Mon, 17 Nov 2025 08:39:41 +0100 Subject: [PATCH] Fix email configuration templates default value from 'collate' to 'openmetadata' (#24352) --- .../native/1.10.8/mysql/postDataMigrationSQLScript.sql | 6 ++++++ .../native/1.10.8/postgres/postDataMigrationSQLScript.sql | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 bootstrap/sql/migrations/native/1.10.8/mysql/postDataMigrationSQLScript.sql create mode 100644 bootstrap/sql/migrations/native/1.10.8/postgres/postDataMigrationSQLScript.sql diff --git a/bootstrap/sql/migrations/native/1.10.8/mysql/postDataMigrationSQLScript.sql b/bootstrap/sql/migrations/native/1.10.8/mysql/postDataMigrationSQLScript.sql new file mode 100644 index 00000000000..42f400ee460 --- /dev/null +++ b/bootstrap/sql/migrations/native/1.10.8/mysql/postDataMigrationSQLScript.sql @@ -0,0 +1,6 @@ +-- Fix emailConfiguration templates field for users affected by v1.8.0 bug +-- See commit: https://github.com/open-metadata/OpenMetadata/commit/a50cddf665544b0934ce79a539aecbb00bd541c8 +-- This migration ensures all emailConfiguration records have the correct 'openmetadata' value +UPDATE openmetadata_settings +SET json = JSON_SET(json, '$.templates', 'openmetadata') +WHERE configType = 'emailConfiguration'; \ No newline at end of file diff --git a/bootstrap/sql/migrations/native/1.10.8/postgres/postDataMigrationSQLScript.sql b/bootstrap/sql/migrations/native/1.10.8/postgres/postDataMigrationSQLScript.sql new file mode 100644 index 00000000000..d7879878671 --- /dev/null +++ b/bootstrap/sql/migrations/native/1.10.8/postgres/postDataMigrationSQLScript.sql @@ -0,0 +1,6 @@ +-- Fix emailConfiguration templates field for users affected by v1.8.0 bug +-- See commit: https://github.com/open-metadata/OpenMetadata/commit/a50cddf665544b0934ce79a539aecbb00bd541c8 +-- This migration ensures all emailConfiguration records have the correct 'openmetadata' value +UPDATE openmetadata_settings +SET json = jsonb_set(json, '{templates}', '"openmetadata"') +WHERE configType = 'emailConfiguration'; \ No newline at end of file