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

Include PRAGMAs from migrations in database create(SqlDriver) #3845

Conversation

MariusVolkhart
Copy link
Contributor

PRAGMA statements defined in migrations, such as switching to WAL mode for SQLite, or toggling foreign keys, are executed as part of the migrate(SqlDriver, Int, Int) function, but are not executed as part of create(SqlDriver). They should be executed as part of both.

I suspect there may be a better way/location to write this test, and am happy to change it as requested.

…reate(SqlDriver) function

PRAGMA statements defined in migrations, such as switching to WAL mode for SQLite, or toggling foreign keys, are executed as part of the migrate(SqlDriver, Int, Int) function, but are not executed as part of create(SqlDriver). They should be executed as part of both.
@hfhbd
Copy link
Collaborator

hfhbd commented Jan 23, 2023

That makes sense, thanks.

@hfhbd hfhbd merged commit 1cccbbe into cashapp:master Jan 23, 2023
@MariusVolkhart MariusVolkhart deleted the mv/includePragmaFromMigrationInDatabaseCreate branch January 24, 2023 16:24
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.

None yet

2 participants