You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./foo.db
2024/09/17 01:30:44 OK 20240916201442_sqlite_per_db_pragmas.sql (630µs)
2024/09/17 01:30:44 goose: successfully migrated database to version: 20240916201442
Actual behavior
Verify whether the PRAGMAs were set. As it turns out, only PRAGMA journal_mode = 'wal' was applied. The other two PRAGMAs were not. The order of the PRAGMAs in the migration file don't make a difference, fwiw.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As per the sqlite3 docs, these per-DB configs should ideally be set on an empty database. How can I do this with goose?
Context
Here's what I tried with goose v3.22.0 and sqlite3 3.43.2.
Create the migration file:
Migrate the database:
Actual behavior
Verify whether the PRAGMAs were set. As it turns out, only
PRAGMA journal_mode = 'wal'
was applied. The other two PRAGMAs were not. The order of the PRAGMAs in the migration file don't make a difference, fwiw.Expected behavior
Beta Was this translation helpful? Give feedback.
All reactions