mirror of https://github.com/apache/cloudstack.git
make 2.2.1 to 2.2.2 upgrade work
This commit is contained in:
parent
b18b2a68b1
commit
57cfdb8092
|
|
@ -22,17 +22,18 @@ import java.sql.Connection;
|
|||
|
||||
import com.cloud.utils.PropertiesUtil;
|
||||
import com.cloud.utils.exception.CloudRuntimeException;
|
||||
import com.cloud.utils.script.Script;
|
||||
|
||||
public class Upgrade221to222 implements DbUpgrade {
|
||||
|
||||
@Override
|
||||
public File[] getPrepareScripts() {
|
||||
File file = PropertiesUtil.findConfigFile("schema-221to222.sql");
|
||||
String file = Script.findScript("", "db/schema-221to222.sql");
|
||||
if (file == null) {
|
||||
throw new CloudRuntimeException("Unable to find the upgrade script, schema-221to222.sql");
|
||||
}
|
||||
|
||||
return new File[] {file};
|
||||
return new File[] {new File(file)};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue