HB not generate default value #810

This commit is contained in:
Tapac
2020-02-26 23:04:00 +03:00
parent 59465af04b
commit 34d9df83a1

View File

@@ -84,7 +84,7 @@ class Column<T>(
}
val defaultValue = dbDefaultValue
if (!isPKColumn && defaultValue != null) {
if (defaultValue != null) {
val expressionSQL = currentDialect.dataTypeProvider.processForDefaultValue(defaultValue)
if (!currentDialect.isAllowedAsColumnDefault(defaultValue)) {
val clientDefault = when {