Skip to content

Add composite unique index to product_product_option#2460

Merged
glennjacobs merged 4 commits into
lunarphp:1.xfrom
wychoong:add-composite-unique-index-to-product_product_option
May 18, 2026
Merged

Add composite unique index to product_product_option#2460
glennjacobs merged 4 commits 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
@glennjacobs glennjacobs merged commit 4d9f3f7 into lunarphp:1.x May 18, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Roadmap May 18, 2026
@wychoong wychoong deleted the add-composite-unique-index-to-product_product_option branch May 19, 2026 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants