|
|
|
@ -279,7 +279,7 @@ public class SqlDatabaseUpgradeService implements DatabaseEntitiesUpgradeService |
|
|
|
conn.createStatement().execute("DROP FUNCTION column_type_to_uuid"); |
|
|
|
|
|
|
|
log.info("Updating alarm relations..."); |
|
|
|
conn.createStatement().execute("DELETE from relation WHERE relation_type-group = 'ALARM' AND relation_type <> 'ALARM_ANY';"); |
|
|
|
conn.createStatement().execute("DELETE from relation WHERE relation_type_group = 'ALARM' AND relation_type <> 'ALARM_ANY';"); |
|
|
|
|
|
|
|
conn.createStatement().execute("UPDATE relation SET relation_type = 'ANY' WHERE relation_type_group = 'ALARM' AND relation_type = 'ALARM_ANY';"); |
|
|
|
log.info("Alarm relations updated."); |
|
|
|
|