diff --git a/upgradedb.go b/upgradedb.go index 268bc06..70798cb 100644 --- a/upgradedb.go +++ b/upgradedb.go @@ -24,6 +24,8 @@ import ( "time" ) +var myVersion = 25 + func doordie(db *sql.DB, s string, args ...interface{}) { _, err := db.Exec(s, args...) if err != nil { diff --git a/util.go b/util.go index b140706..3ecc8de 100644 --- a/util.go +++ b/util.go @@ -74,7 +74,6 @@ var alreadyopendb *sql.DB var dbname = "honk.db" var blobdbname = "blob.db" var stmtConfig *sql.Stmt -var myVersion = 25 func initdb() { schema, err := ioutil.ReadFile("schema.sql")