#3 页面删除重复字段 提交补丁文件

Fusionado
tangzp fusionados 1 commits de dev en master hace 8 meses
  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 Ver fichero

@@ -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 Ver fichero

@@ -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
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 50
- 0
mztb/src/main/resources/upgrade/mztb/kbsql/patch_0.001.sql
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 50
- 0
mztb/src/main/resources/upgrade/mztb/mysql/patch_0.001.sql
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 50
- 0
mztb/src/main/resources/upgrade/mztb/stsql/patch_0.001.sql
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


Cargando…
Cancelar
Guardar