Fix UNIQUE not added in postgres

This commit is contained in:
1ilit 2024-07-03 03:27:36 +03:00
parent 55295a6790
commit 219a5a877b

View File

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