Fix email configuration templates default value from 'collate' to 'openmetadata' (#24352)

This commit is contained in:
Adrià Manero 2025-11-17 08:39:41 +01:00 committed by GitHub
parent ea5eaf885d
commit 741556cede
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -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';

View File

@ -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';