Update examples

This commit is contained in:
Philipp Heckel 2021-11-29 15:34:29 -05:00
parent 9d37217eba
commit 1e7ae885b4
3 changed files with 8 additions and 2 deletions

View file

@ -5,6 +5,7 @@ import (
"errors"
"fmt"
_ "github.com/mattn/go-sqlite3" // SQLite driver
"log"
"strings"
"time"
)
@ -210,6 +211,7 @@ func setupNewDB(db *sql.DB) error {
}
func migrateFrom0To1(db *sql.DB) error {
log.Print("Migrating cache database schema: from 0 to 1")
if _, err := db.Exec(migrate0To1AlterMessagesTableQuery); err != nil {
return err
}