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

Enable Foreign Keys #70

Merged
merged 1 commit into from
Jan 23, 2020
Merged

Enable Foreign Keys #70

merged 1 commit into from
Jan 23, 2020

Conversation

tanner0101
Copy link
Member

@tanner0101 tanner0101 commented Jan 23, 2020

Adds SQLiteConfiguration.enableForeignKeys (#70, fixes #68). This defaults to true. When enabled, all connections created by SQLiteConnectionSource will first run the following query:

PRAGMA foreign_keys = ON

@tanner0101 tanner0101 added the enhancement New feature or request label Jan 23, 2020
@tanner0101 tanner0101 changed the title enable foreign keys Enable Foreign Keys Jan 23, 2020
@tanner0101 tanner0101 added the semver-minor Contains new APIs label Jan 23, 2020
@tanner0101 tanner0101 merged commit f098081 into master Jan 23, 2020
@tanner0101
Copy link
Member Author

These changes are now available in 4.0.0-beta.3.2

@tanner0101 tanner0101 deleted the tn-foreign-keys branch January 23, 2020 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request semver-minor Contains new APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(Vapor 4 Beta) Foreign keys not working
1 participant