Merge pull request #9294 from dashevchenko/db_scheme_version_update

Updated db schema version from 3.5.2 to 3.6.0
This commit is contained in:
Andrew Shvayka 2023-09-20 12:52:21 +03:00 committed by GitHub
commit d894e3461b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -768,10 +768,10 @@ public class SqlDatabaseUpgradeService implements DatabaseEntitiesUpgradeService
} catch (Exception e) { } catch (Exception e) {
} }
conn.createStatement().execute("UPDATE tb_schema_settings SET schema_version = 3005002;"); conn.createStatement().execute("UPDATE tb_schema_settings SET schema_version = 3006000;");
log.info("Schema updated to version 3.5.2."); log.info("Schema updated to version 3.6.0.");
} else { } else {
log.info("Skip schema re-update to version 3.5.2. Use env flag 'SKIP_SCHEMA_VERSION_CHECK' to force the re-update."); log.info("Skip schema re-update to version 3.6.0. Use env flag 'SKIP_SCHEMA_VERSION_CHECK' to force the re-update.");
} }
} catch (Exception e) { } catch (Exception e) {
log.error("Failed updating schema!!!", e); log.error("Failed updating schema!!!", e);

View File

@ -25,7 +25,7 @@ CREATE OR REPLACE PROCEDURE insert_tb_schema_settings()
$$ $$
BEGIN BEGIN
IF (SELECT COUNT(*) FROM tb_schema_settings) = 0 THEN IF (SELECT COUNT(*) FROM tb_schema_settings) = 0 THEN
INSERT INTO tb_schema_settings (schema_version) VALUES (3005002); INSERT INTO tb_schema_settings (schema_version) VALUES (3006000);
END IF; END IF;
END; END;
$$; $$;