Commit efe5677c80f87f17762016e423cb002140777f83
Committed by
Andrew Shvayka
1 parent
babe3605
events: fixed update from version (3.2.2)
Showing
2 changed files
with
2 additions
and
10 deletions
application/src/main/data/upgrade/3.2.2/schema_update_event.sql
renamed from
application/src/main/data/upgrade/3.3.0/schema_update_event.sql
... | ... | @@ -460,16 +460,8 @@ public class SqlDatabaseUpgradeService implements DatabaseEntitiesUpgradeService |
460 | 460 | loadSql(schemaUpdateFile, conn); |
461 | 461 | log.info("Edge TTL functions successfully loaded!"); |
462 | 462 | conn.createStatement().execute("UPDATE tb_schema_settings SET schema_version = 3003000;"); |
463 | - log.info("Schema updated."); | |
464 | - } catch (Exception e) { | |
465 | - log.error("Failed updating schema!!!", e); | |
466 | - } | |
467 | - break; | |
468 | - case "3.3.0": | |
469 | - try (Connection conn = DriverManager.getConnection(dbUrl, dbUserName, dbPassword)) { | |
470 | - log.info("Updating schema ..."); | |
471 | - log.info("Updating indexes and procedure for event table..."); | |
472 | - schemaUpdateFile = Paths.get(installScripts.getDataDir(), "upgrade", "3.3.0", "schema_update_event.sql"); | |
463 | + log.info("Updating indexes and TTL procedure for event table..."); | |
464 | + schemaUpdateFile = Paths.get(installScripts.getDataDir(), "upgrade", "3.2.2", "schema_update_event.sql"); | |
473 | 465 | loadSql(schemaUpdateFile, conn); |
474 | 466 | log.info("Schema updated."); |
475 | 467 | } catch (Exception e) { | ... | ... |