Feat(utils): psql unique index instead of constraint (#6386)

**What**
- always return an index expression, also for unique constraints

**why**
- constraints can't be partial, meaning `UNIQUE ... WHERE` is not possible with constraints
- constraints are indicies under the hood so it doesn't change the behavior of the system when we're not using constraint specific features but just using them for `UNIQUE`
This commit is contained in:
Philip Korsholm authored and GitHub committed 2024-02-13 08:07:34 +00:00
1 parent aa9f66e16a
commit a86c87fe14
3 files changed
+10 -8

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/utils": patch
---
feat(utils): make psql index util return index instead of constraint for unique indicies becuase partial constraints don't exist :'(