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

Simplify DatabaseMigrator API #709

Merged
merged 9 commits into from
Feb 27, 2020
Merged

Simplify DatabaseMigrator API #709

merged 9 commits into from
Feb 27, 2020

Conversation

groue
Copy link
Owner

@groue groue commented Feb 26, 2020

All GRDB migrations now run with deferred foreign key checks, removing the need for two distinct methods DatabaseMigrator.registerMigration() and DatabaseMigrator.registerMigrationWithDeferredForeignKeyCheck(). The latter is deprecated in favor of the other.

In previous GRDB versions, foreign key violations executed by a migration would immediately throw an error. Now those violations still throw an error, but at the end of the migration.

@groue groue merged commit be53b0d into development Feb 27, 2020
@groue groue deleted the dev/migration branch February 27, 2020 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant