Skip to content

Commit a57401f

Browse files
committed
note about upgrading with existing sqlite
1 parent 0b31c5b commit a57401f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/storage/storage.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ func NewStorage(logger *slog.Logger) *Storage {
5050
// create tables
5151
ctx := context.Background()
5252
if _, err := db.ExecContext(ctx, ddl); err != nil {
53+
// if this fails, we should drop the old file (throwing away buried data, sadly) and retry to create the tables
54+
55+
// adjust the schema.sql file by adding a column, to check the behavior. I think there's a NPE or such that we hit
5356
check(err)
5457
}
5558

0 commit comments

Comments
 (0)