2222import com .cloud .upgrade .SystemVmTemplateRegistration ;
2323import com .cloud .utils .exception .CloudRuntimeException ;
2424
25- public class Upgrade41900to42000 extends DbUpgradeAbstractImpl implements DbUpgrade , DbUpgradeSystemVmTemplate {
25+ public class Upgrade41910to42000 extends DbUpgradeAbstractImpl implements DbUpgrade , DbUpgradeSystemVmTemplate {
2626 private SystemVmTemplateRegistration systemVmTemplateRegistration ;
2727
2828 @ Override
2929 public String [] getUpgradableVersionRange () {
30- return new String [] {"4.19.0 .0" , "4.20.0.0" };
30+ return new String [] {"4.19.1 .0" , "4.20.0.0" };
3131 }
3232
3333 @ Override
@@ -42,7 +42,7 @@ public boolean supportsRollingUpgrade() {
4242
4343 @ Override
4444 public InputStream [] getPrepareScripts () {
45- final String scriptFile = "META-INF/db/schema-41900to42000 .sql" ;
45+ final String scriptFile = "META-INF/db/schema-41910to42000 .sql" ;
4646 final InputStream script = Thread .currentThread ().getContextClassLoader ().getResourceAsStream (scriptFile );
4747 if (script == null ) {
4848 throw new CloudRuntimeException ("Unable to find " + scriptFile );
@@ -57,7 +57,7 @@ public void performDataMigration(Connection conn) {
5757
5858 @ Override
5959 public InputStream [] getCleanupScripts () {
60- final String scriptFile = "META-INF/db/schema-41900to42000 -cleanup.sql" ;
60+ final String scriptFile = "META-INF/db/schema-41910to42000 -cleanup.sql" ;
6161 final InputStream script = Thread .currentThread ().getContextClassLoader ().getResourceAsStream (scriptFile );
6262 if (script == null ) {
6363 throw new CloudRuntimeException ("Unable to find " + scriptFile );
0 commit comments