Browse Source

Merge pull request #159 from lgcareer/dev-20190415

update upgradeEscheduler
pull/2/head
lgcareer 6 years ago committed by GitHub
parent
commit
d7d3423a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      escheduler-dao/src/main/java/cn/escheduler/dao/upgrade/EschedulerManager.java
  2. 2
      escheduler-dao/src/main/java/cn/escheduler/dao/upgrade/shell/UpgradeEscheduler.java

1
escheduler-dao/src/main/java/cn/escheduler/dao/upgrade/EschedulerManager.java

@ -66,6 +66,7 @@ public class EschedulerManager {
version = "1.0.0";
}else{
logger.error("Unable to determine current software version, so cannot upgrade");
throw new RuntimeException("Unable to determine current software version, so cannot upgrade");
}
// The target version of the upgrade
String schemaVersion = "";

2
escheduler-dao/src/main/java/cn/escheduler/dao/upgrade/shell/UpgradeEscheduler.java

@ -27,8 +27,6 @@ public class UpgradeEscheduler {
private static final Logger logger = LoggerFactory.getLogger(UpgradeEscheduler.class);
public static void main(String[] args) {
Thread.currentThread().setName("manager-UpgradeEscheduler");
EschedulerManager eschedulerManager = new EschedulerManager();
try {
eschedulerManager.upgradeEscheduler();

Loading…
Cancel
Save