Skip to content

Commit

Permalink
sql: fix in-memory db handling
Browse files Browse the repository at this point in the history
Don't check for incomplete migrations in case of an in-memory DB
  • Loading branch information
ivan4th committed Aug 17, 2024
1 parent e7b563b commit 5247124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func Open(uri string, opts ...Opt) (*sqliteDatabase, error) {
for _, opt := range opts {
opt(config)
}
if !config.temp && config.handleIncompleteMigrations {
if !config.temp && config.handleIncompleteMigrations && !config.forceFresh {
if err := handleIncompleteCopyMigration(config); err != nil {
return nil, err

Check warning on line 234 in sql/database.go

View check run for this annotation

Codecov / codecov/patch

sql/database.go#L234

Added line #L234 was not covered by tests
}
Expand Down

0 comments on commit 5247124

Please sign in to comment.