Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deleting a discount should delete relations #2025

Merged
merged 4 commits into from
Jan 27, 2025

Conversation

ryanmitchell
Copy link
Contributor

Deleting a discount should delete its pivots (channels, customerGroups and brands) otherwise you run into foreign key exceptions.

Copy link

vercel bot commented Nov 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 9:34am

@alecritson
Copy link
Collaborator

Should we also be considering other relationships, such as users and purchasables,

@ryanmitchell
Copy link
Contributor Author

@alecritson done!

@alecritson alecritson merged commit dd459da into lunarphp:1.x Jan 27, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants