3232import com .cloud .hypervisor .Hypervisor ;
3333import com .cloud .utils .exception .CloudRuntimeException ;
3434
35- public class Upgrade41300to41400 implements DbUpgrade {
35+ public class Upgrade41310to41400 implements DbUpgrade {
3636
37- final static Logger LOG = Logger .getLogger (Upgrade41300to41400 .class );
37+ final static Logger LOG = Logger .getLogger (Upgrade41310to41400 .class );
3838
3939 @ Override
4040 public String [] getUpgradableVersionRange () {
41- return new String [] {"4.13.0 .0" , "4.14.0.0" };
41+ return new String [] {"4.13.1 .0" , "4.14.0.0" };
4242 }
4343
4444 @ Override
@@ -53,7 +53,7 @@ public boolean supportsRollingUpgrade() {
5353
5454 @ Override
5555 public InputStream [] getPrepareScripts () {
56- final String scriptFile = "META-INF/db/schema-41300to41400 .sql" ;
56+ final String scriptFile = "META-INF/db/schema-41310to41400 .sql" ;
5757 final InputStream script = Thread .currentThread ().getContextClassLoader ().getResourceAsStream (scriptFile );
5858 if (script == null ) {
5959 throw new CloudRuntimeException ("Unable to find " + scriptFile );
@@ -237,7 +237,7 @@ private void updateSystemVmTemplates(final Connection conn) {
237237
238238 @ Override
239239 public InputStream [] getCleanupScripts () {
240- final String scriptFile = "META-INF/db/schema-41300to41400 -cleanup.sql" ;
240+ final String scriptFile = "META-INF/db/schema-41310to41400 -cleanup.sql" ;
241241 final InputStream script = Thread .currentThread ().getContextClassLoader ().getResourceAsStream (scriptFile );
242242 if (script == null ) {
243243 throw new CloudRuntimeException ("Unable to find " + scriptFile );
0 commit comments