fixed upgrade script
This commit is contained in:
parent
118b2b7e10
commit
af0ed29644
@ -126,7 +126,8 @@ public class SqlDatabaseUpgradeService implements DatabaseEntitiesUpgradeService
|
||||
try {
|
||||
connection.createStatement().execute("UPDATE rule_node SET " +
|
||||
"configuration = CASE " +
|
||||
" WHEN (configuration::jsonb ->> 'persistAlarmRulesState')::boolean = false THEN jsonb_set(configuration::jsonb, '{fetchAlarmRulesStateOnStart}', 'false'::jsonb)::varchar " +
|
||||
" WHEN (configuration::jsonb ->> 'persistAlarmRulesState') = 'false'" +
|
||||
" THEN (configuration::jsonb || '{\"fetchAlarmRulesStateOnStart\": \"false\"}'::jsonb)::varchar " +
|
||||
" ELSE configuration " +
|
||||
"END, " +
|
||||
"configuration_version = 1 " +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user