Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add useConstraint modifier to the creation of the unique index.
Knex documentation says for the unique() function, that useConstraint will use a unique constraint and is default true for postgres when there is no predicate defined. Issue #3200 specifies that we want a unique index. Documentation can be found here: https://knexjs.org/guide/schema-builder.html#unique
- Loading branch information