Skip to content

Commit

Permalink
Fix UNIQUE not added in postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilit committed Jul 3, 2024
1 parent 55295a6 commit 219a5a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/toSQL.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 219a5a8

Please sign in to comment.