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

Try delete discount in Admin panel, but get error SQLSTATE[23000] #2118

Open
ARMC0DE opened this issue Feb 23, 2025 · 1 comment
Open

Try delete discount in Admin panel, but get error SQLSTATE[23000] #2118

ARMC0DE opened this issue Feb 23, 2025 · 1 comment
Labels
bug Something isn't working unconfirmed

Comments

@ARMC0DE
Copy link

ARMC0DE commented Feb 23, 2025

  • Lunar version: 1.0.0-beta.6
  • Laravel Version: 11.33.2
  • PHP Version: 8.3
  • Database Driver & Version: Mysql 8.0

Expected Behaviour:

deleted Discount in Admin pane

Actual Behaviour:

I try delete Discount in admin paanel, but get error:

SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (snuster.lunar_customer_group_discount, CONSTRAINT lunar_customer_group_discount_discount_id_foreign FOREIGN KEY (discount_id) REFERENCES lunar_discounts (id)) (Connection: mysql, SQL: delete from lunar_discounts where id = 1)

Steps To Reproduce:

Image
@ARMC0DE ARMC0DE added bug Something isn't working unconfirmed labels Feb 23, 2025
@glennjacobs
Copy link
Contributor

Can you confirm this is still an issue in the latest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

2 participants