Skip to content

Add composite unique index to product_product_option#2460

Open
wychoong wants to merge 1 commit into
lunarphp:1.xfrom
wychoong:add-composite-unique-index-to-product_product_option
Open

Add composite unique index to product_product_option#2460
wychoong wants to merge 1 commit into
lunarphp:1.xfrom
wychoong:add-composite-unique-index-to-product_product_option

Conversation

@wychoong
Copy link
Copy Markdown
Contributor

@wychoong wychoong commented May 1, 2026

currently product_product_option only has unique index on each product_id and product_option_id for the foreign key. this doesn't enforce data integrity.

this changes also allow usage of upsert which relies on primary/unique index

@github-project-automation github-project-automation Bot moved this to Todo in Roadmap May 1, 2026
@wychoong wychoong marked this pull request as ready for review May 1, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant