fix: NEZ-3021 transfer 补充无用表删除逻辑

This commit is contained in:
zhangshuai
2023-08-02 09:36:34 +08:00
parent 90f33992d5
commit a3be774974
3 changed files with 51 additions and 0 deletions

View File

@@ -28,6 +28,9 @@ public class AfterHandler implements CommandLineRunner {
@Autowired
private SqlDao sqlDao;
@Autowired
private SqlHandler sqlHandler;
@Override
public void run(String... args) throws Exception {
@@ -47,6 +50,9 @@ public class AfterHandler implements CommandLineRunner {
sqlDao.execute(sb.toString());
log.info("remove table successful");
sqlHandler.dropTable();
log.info("remove useless table successful");
// nezha.properties database.pin
// 21.07 -> 22.02 pin 加密
String propsPath = "/opt/nezha/nz-web/config/nezha.properties";