Fix postgres
This commit is contained in:
parent
9bbf20d6d6
commit
b5b6cb51e8
|
@ -1071,6 +1071,8 @@ WHERE c.relkind = 'r'::char AND c.relname = $1%s AND f.attnum > 0 ORDER BY f.att
|
||||||
col.DefaultIsEmpty = false
|
col.DefaultIsEmpty = false
|
||||||
if strings.HasPrefix(col.Default, "nextval(") {
|
if strings.HasPrefix(col.Default, "nextval(") {
|
||||||
col.IsAutoIncrement = true
|
col.IsAutoIncrement = true
|
||||||
|
col.Default = ""
|
||||||
|
col.DefaultIsEmpty = true
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
col.DefaultIsEmpty = true
|
col.DefaultIsEmpty = true
|
||||||
|
|
Loading…
Reference in New Issue