#I6IWI9 解决没有升级脚本时提示没有找到文件问题

This commit is contained in:
暮光:城中城
2023-03-02 23:20:18 +08:00
parent 76307b05b3
commit a819a8df59
8 changed files with 42 additions and 14 deletions

View File

@@ -37,5 +37,9 @@
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-core</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,17 @@
package com.zyplayer.doc.core.util;
import lombok.Data;
@Data
public class UpgradeInfo {
private String version;
private boolean haveUpgradeSql;
public UpgradeInfo() {
}
public UpgradeInfo(String version, boolean haveUpgradeSql) {
this.version = version;
this.haveUpgradeSql = haveUpgradeSql;
}
}

View File

@@ -15,8 +15,8 @@ public class ZyplayerDocVersion {
/**
* 每次升级必须添加一条记录用于执行它的升级SQL
*/
public static final List<String> versionUpgrade = new LinkedList<String>() {{
add("1.1.3");
add("1.1.2");
public static final List<UpgradeInfo> versionUpgrade = new LinkedList<UpgradeInfo>() {{
add(new UpgradeInfo("1.1.3", false));
add(new UpgradeInfo("1.1.2", true));
}};
}