瀏覽代碼

Merge pull request '页面删除重复字段 提交补丁文件' (#3) from dev into master

Reviewed-on: http://47.92.149.153:3000/tangzp/mztb-parent/pulls/3
master
唐周平 8 月之前
父節點
當前提交
13bff2c19b
共有 6 個檔案被更改,包括 248 行新增1 行删除
  1. +1
    -1
      mztb/src/main/java/cc/smtweb/biz/mztb/web/MztbStartedListener.java
  2. +47
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/patch/Patch0_001.java
  3. +50
    -0
      mztb/src/main/resources/upgrade/mztb/dmsql/patch_0.001.sql
  4. +50
    -0
      mztb/src/main/resources/upgrade/mztb/kbsql/patch_0.001.sql
  5. +50
    -0
      mztb/src/main/resources/upgrade/mztb/mysql/patch_0.001.sql
  6. +50
    -0
      mztb/src/main/resources/upgrade/mztb/stsql/patch_0.001.sql

+ 1
- 1
mztb/src/main/java/cc/smtweb/biz/mztb/web/MztbStartedListener.java 查看文件

@@ -14,7 +14,7 @@ public class MztbStartedListener implements IStartListener {

@Override
public double versionTo() {
return 0;
return 0.001;
}
@Override
public int order() {


+ 47
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/patch/Patch0_001.java 查看文件

@@ -0,0 +1,47 @@
package cc.smtweb.biz.mztb.web.patch;

import cc.smtweb.framework.core.annotation.SwPatch;
import cc.smtweb.framework.core.db.DbEngine;
import cc.smtweb.framework.core.patch.IPatch;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.support.EncodedResource;

import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;


/**
*
*/
@SwPatch
public class Patch0_001 implements IPatch {
@Override
public double version() {
return 0.001;
}

@Override
public String versionDesc() {
return "";
}

@Override
public void upgradeDb() {

}

@Override
public List<EncodedResource> scriptFiles() {
List<EncodedResource> files = new ArrayList<>();
String dbType = DbEngine.getInstance().getDbType();
EncodedResource resource = new EncodedResource(new ClassPathResource("upgrade/mztb/"+dbType+"/patch_0.001.sql"), StandardCharsets.UTF_8);
files.add(resource);
return files;
}

@Override
public void upgrade() {

}
}

+ 50
- 0
mztb/src/main/resources/upgrade/mztb/dmsql/patch_0.001.sql
文件差異過大導致無法顯示
查看文件


+ 50
- 0
mztb/src/main/resources/upgrade/mztb/kbsql/patch_0.001.sql
文件差異過大導致無法顯示
查看文件


+ 50
- 0
mztb/src/main/resources/upgrade/mztb/mysql/patch_0.001.sql
文件差異過大導致無法顯示
查看文件


+ 50
- 0
mztb/src/main/resources/upgrade/mztb/stsql/patch_0.001.sql
文件差異過大導致無法顯示
查看文件


Loading…
取消
儲存