Переглянути джерело

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


Завантаження…
Відмінити
Зберегти