Merge pull request #8245 from YevhenBondarenko/fix/upgrade
[3.5]fixed upgrade schema update
This commit is contained in:
commit
bcd9ea3931
@ -72,8 +72,6 @@ WHERE cleared = FALSE
|
|||||||
ORDER BY l.created_time DESC, l.id
|
ORDER BY l.created_time DESC, l.id
|
||||||
LIMIT 1);
|
LIMIT 1);
|
||||||
|
|
||||||
VACUUM FULL ANALYZE alarm;
|
|
||||||
|
|
||||||
-- ALARM STATUS REFACTORING END
|
-- ALARM STATUS REFACTORING END
|
||||||
|
|
||||||
-- ALARM COMMENTS START
|
-- ALARM COMMENTS START
|
||||||
|
|||||||
@ -684,6 +684,11 @@ public class SqlDatabaseUpgradeService implements DatabaseEntitiesUpgradeService
|
|||||||
schemaUpdateFile = Paths.get(installScripts.getDataDir(), "upgrade", "3.4.4", SCHEMA_UPDATE_SQL);
|
schemaUpdateFile = Paths.get(installScripts.getDataDir(), "upgrade", "3.4.4", SCHEMA_UPDATE_SQL);
|
||||||
loadSql(schemaUpdateFile, conn);
|
loadSql(schemaUpdateFile, conn);
|
||||||
|
|
||||||
|
try {
|
||||||
|
conn.createStatement().execute("VACUUM FULL ANALYZE alarm;"); //NOSONAR, ignoring because method used to execute thingsboard database upgrade script
|
||||||
|
} catch (Exception e) {
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
conn.createStatement().execute("ALTER TABLE asset_profile ADD COLUMN default_edge_rule_chain_id uuid"); //NOSONAR, ignoring because method used to execute thingsboard database upgrade script
|
conn.createStatement().execute("ALTER TABLE asset_profile ADD COLUMN default_edge_rule_chain_id uuid"); //NOSONAR, ignoring because method used to execute thingsboard database upgrade script
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user