Fix UNIQUE not added in postgres
This commit is contained in:
parent
55295a6790
commit
219a5a877b
@ -265,7 +265,7 @@ export function jsonToPostgreSQL(obj) {
|
||||
field.name
|
||||
}" ${getTypeString(field, "postgres")}${
|
||||
field.notNull ? " NOT NULL" : ""
|
||||
}${
|
||||
}${field.unique ? " UNIQUE" : ""}${
|
||||
field.default !== "" ? ` DEFAULT ${parseDefault(field)}` : ""
|
||||
}${
|
||||
field.check === "" || !hasCheck(field.type)
|
||||
|
Loading…
Reference in New Issue
Block a user