db version probably belongs in upgrade file
This commit is contained in:
parent
5e33ab4c87
commit
d45de9d733
2 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
1
util.go
1
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")
|
||||
|
|
Loading…
Reference in a new issue