Skip to content

Commit

Permalink
note about upgrading with existing sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
chelmertz committed May 30, 2024
1 parent 0b31c5b commit a57401f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ func NewStorage(logger *slog.Logger) *Storage {
// create tables
ctx := context.Background()
if _, err := db.ExecContext(ctx, ddl); err != nil {
// if this fails, we should drop the old file (throwing away buried data, sadly) and retry to create the tables

// adjust the schema.sql file by adding a column, to check the behavior. I think there's a NPE or such that we hit
check(err)
}

Expand Down

0 comments on commit a57401f

Please sign in to comment.