db version probably belongs in upgrade file

This commit is contained in:
Ted Unangst 2019-10-16 16:43:43 -04:00
parent 5e33ab4c87
commit d45de9d733
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,8 @@ import (
"time" "time"
) )
var myVersion = 25
func doordie(db *sql.DB, s string, args ...interface{}) { func doordie(db *sql.DB, s string, args ...interface{}) {
_, err := db.Exec(s, args...) _, err := db.Exec(s, args...)
if err != nil { if err != nil {

View File

@ -74,7 +74,6 @@ var alreadyopendb *sql.DB
var dbname = "honk.db" var dbname = "honk.db"
var blobdbname = "blob.db" var blobdbname = "blob.db"
var stmtConfig *sql.Stmt var stmtConfig *sql.Stmt
var myVersion = 25
func initdb() { func initdb() {
schema, err := ioutil.ReadFile("schema.sql") schema, err := ioutil.ReadFile("schema.sql")