FIX - App Extension Migration (#18176)

This commit is contained in:
Pere Miquel Brull 2024-10-09 09:34:18 +02:00
parent 30a526844f
commit c1c8448c1d

View File

@ -24,7 +24,7 @@ public class MigrationUtil {
private static final String UPDATE_MYSQL_APP_EXTENSION = private static final String UPDATE_MYSQL_APP_EXTENSION =
"UPDATE apps_extension_time_series SET json = JSON_SET(json, '$.appName', :appName) WHERE appId = :appId AND extension = 'status'"; "UPDATE apps_extension_time_series SET json = JSON_SET(json, '$.appName', :appName) WHERE appId = :appId AND extension = 'status'";
private static final String UPDATE_PG_APP_EXTENSION = private static final String UPDATE_PG_APP_EXTENSION =
"UPDATE apps_extension_time_series SET json = jsonb_set(json_data, '{appName}', :appName::jsonb) WHERE appId = :appId AND extension = 'status'"; "UPDATE apps_extension_time_series SET json = jsonb_set(json, '{appName}', :appName::jsonb) WHERE appId = :appId AND extension = 'status'";
// We'll list the entries in app_extension_time_series, clean those whose appId // We'll list the entries in app_extension_time_series, clean those whose appId
// is not installed, and for those that appId matches from installed Apps, we'll // is not installed, and for those that appId matches from installed Apps, we'll