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

Support foreign keys with SQLite #590

Merged
merged 3 commits into from
Feb 20, 2019
Merged

Support foreign keys with SQLite #590

merged 3 commits into from
Feb 20, 2019

Conversation

kevinpapst
Copy link
Member

@kevinpapst kevinpapst commented Feb 20, 2019

Fixes #589

There is now a Doctrine EventSubscriber that listens on the postConnect event and triggers a

PRAGMA foreign_keys = ON;

in case that a SQLite connection is found.

This finally activates foreign keys and cascade deletes with SQLite!

See https://www.sqlite.org/pragma.html#pragma_foreign_keys

@kevinpapst kevinpapst modified the milestones: 0.9, 0.8.1 Feb 20, 2019
@kevinpapst kevinpapst merged commit fd4a87e into master Feb 20, 2019
@kevinpapst kevinpapst deleted the sqlite-cascade-delete branch February 20, 2019 19:06
@lock
Copy link

lock bot commented Apr 21, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

@lock lock bot locked and limited conversation to collaborators Apr 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deletion of customers leads to internal server error 500
1 participant