fix(medusa, admin-ui): Add deleted_at to Return Reason unique constraint (#4834)

* Update return reason create to upsert

* Create strange-wombats-invite.md

* Revert upsert, make value index only apply on non-deleted entities
This commit is contained in:
Rares Stefan
2023-08-29 19:26:58 +02:00
committed by GitHub
parent 046b0dcfa5
commit 470379e631
4 changed files with 42 additions and 19 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import { generateEntityId } from "../utils/generate-entity-id"
@Entity()
export class ReturnReason extends SoftDeletableEntity {
@Index({ unique: true })
@Index({ unique: true, where: "deleted_at IS NULL" })
@Column()
value: string