add migration for MongoDB supportsProfiler = true (#15254)

* add migration for MongoDB supportsProfiler = true
This commit is contained in:
Imri Paran 2024-02-27 08:41:55 +01:00 committed by GitHub
parent abfdf0e529
commit ec3eb297f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
-- Add the supportsProfiler field to the MongoDB connection configuration
UPDATE dbservice_entity
SET json = JSON_INSERT(json, '$.connection.config.supportsProfiler', TRUE)
WHERE serviceType = 'MongoDB';

View File

@ -0,0 +1,4 @@
-- Add the supportsProfiler field to the MongoDB connection configuration
UPDATE dbservice_entity
SET json = jsonb_set(json::jsonb, '{connection,config,supportsProfiler}', 'true'::jsonb)
WHERE serviceType = 'MongoDB';