Explorar el Código

add support for indexes with where clauses

tags/2.0.1
Jonathan Cobb hace 4 años
padre
commit
e5472a977b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 Ver fichero

@@ -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) {


Cargando…
Cancelar
Guardar