Fix schema path for 419 upgrade path (#7346)

This commit is contained in:
David Jumani 2023-03-16 16:28:17 +05:30 committed by GitHub
parent ccbb0cfc54
commit 2aa3f980e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ public class Upgrade41810to41900 implements DbUpgrade, DbUpgradeSystemVmTemplate
@Override
public InputStream[] getPrepareScripts() {
final String scriptFile = "META-INF/db/schema-41800to41810.sql";
final String scriptFile = "META-INF/db/schema-41810to41900.sql";
final InputStream script = Thread.currentThread().getContextClassLoader().getResourceAsStream(scriptFile);
if (script == null) {
throw new CloudRuntimeException("Unable to find " + scriptFile);
@ -59,7 +59,7 @@ public class Upgrade41810to41900 implements DbUpgrade, DbUpgradeSystemVmTemplate
@Override
public InputStream[] getCleanupScripts() {
final String scriptFile = "META-INF/db/schema-41800to41810-cleanup.sql";
final String scriptFile = "META-INF/db/schema-41810to41900-cleanup.sql";
final InputStream script = Thread.currentThread().getContextClassLoader().getResourceAsStream(scriptFile);
if (script == null) {
throw new CloudRuntimeException("Unable to find " + scriptFile);