mirror of
https://github.com/KOHGYLW/kiftd-source.git
synced 2025-01-09 04:27:56 +08:00
调整了部分从旧版本归档文件中导入数据的逻辑
This commit is contained in:
parent
66312d7396
commit
eabdd2fbe0
@ -1,6 +1,7 @@
|
||||
package kohgylw.kiftd.server.util;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
import java.sql.ResultSet;
|
||||
@ -65,7 +66,7 @@ public class FileNodeUtil {
|
||||
state0.execute("RUNSCRIPT FROM '" + upgradeFile.getAbsolutePath() + "' FROM_1X");
|
||||
state0.close();
|
||||
if (!upgradeFile.delete()) {
|
||||
Printer.instance.print("警告:无法清理旧版本数据的归档文件,您可以手动删除[" + upgradeFile.getAbsolutePath() + "]文件。");
|
||||
throw new IOException("错误:旧归档文件删除失败:" + upgradeFile.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
// 生成数据库表并初始化数据内容
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user