瀏覽代碼

add support for indexes with where clauses

tags/2.0.1
Jonathan Cobb 4 年之前
父節點
當前提交
e5472a977b
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      wizard-common/src/main/java/org/cobbzilla/wizard/model/entityconfig/EntityReferences.java

+ 1
- 1
wizard-common/src/main/java/org/cobbzilla/wizard/model/entityconfig/EntityReferences.java 查看文件

@@ -150,7 +150,7 @@ public class EntityReferences {
}
indexName = shortName;
}
return "CREATE "+(unique ? "UNIQUE" : "")+" INDEX "+indexName+" ON "+tableName+"("+StringUtil.toString(columnNames, ", ")+")";
return "CREATE "+(unique ? "UNIQUE" : "")+" INDEX "+indexName+" ON "+tableName+"("+StringUtil.toString(columnNames, ", ")+") "+index.where();
}

private List<String> fkField(Class<? extends Identifiable> clazz, Field f, boolean includeIndexes) {


Loading…
取消
儲存