fix: Unique constraint should account for soft deleted records (#11048)
FIXES FRMW-2878 **What** Currently, the `one-to-one` unique constraints does not account for deleted record. This prevents from inserting a new record wth the same fk if another one is deleted. **Caveat** `hasOne` with FK option is meant to be a special case, for example a many to one - one to many without defining the other side of the relation. In that case we don't handle this behaviour and keep it as it is
This commit is contained in:
committed by
GitHub
parent
ecc8efcb04
commit
da3906efa4
@@ -0,0 +1,14 @@
|
||||
---
|
||||
"@medusajs/cart": patch
|
||||
"@medusajs/fulfillment": patch
|
||||
"@medusajs/notification": patch
|
||||
"@medusajs/payment": patch
|
||||
"@medusajs/promotion": patch
|
||||
"@medusajs/region": patch
|
||||
"@medusajs/stock-location": patch
|
||||
"@medusajs/workflow-engine-inmemory": patch
|
||||
"@medusajs/workflow-engine-redis": patch
|
||||
"@medusajs/utils": patch
|
||||
---
|
||||
|
||||
fix: Unique constraint should account for soft deleted records
|
||||
Reference in New Issue
Block a user