|
|
|
@ -437,6 +437,7 @@ public class SqlDatabaseUpgradeService implements DatabaseEntitiesUpgradeService |
|
|
|
case "3.2.1": |
|
|
|
try (Connection conn = DriverManager.getConnection(dbUrl, dbUserName, dbPassword)) { |
|
|
|
log.info("Updating schema ..."); |
|
|
|
conn.createStatement().execute("CREATE INDEX IF NOT EXISTS idx_audit_log_tenant_id_and_created_time ON audit_log(tenant_id, created_time);"); |
|
|
|
schemaUpdateFile = Paths.get(installScripts.getDataDir(), "upgrade", "3.2.1", SCHEMA_UPDATE_SQL); |
|
|
|
loadSql(schemaUpdateFile, conn); |
|
|
|
conn.createStatement().execute("UPDATE tb_schema_settings SET schema_version = 3002002;"); |
|
|
|
|