diff options
author | Joe Robinson <joe@mumsnet.com> | 2014-07-21 10:29:04 +0100 |
---|---|---|
committer | Joe Robinson <joe@mumsnet.com> | 2014-07-21 10:29:04 +0100 |
commit | c4c2aee4aa4ce2b726f14cb8f91f20801d2e6784 (patch) | |
tree | 76ebf4fca6a8790aae6b3ca764bf6b4d760a930f | |
parent | 8c1cb7094ceee2474df34bd941ca0e63e3137eb2 (diff) |
Change init SQL to use current version number
-rw-r--r-- | blavote.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,7 +13,7 @@ var version string func main() { - version = "0.3" + version = "0.31" //Command line arguments var opts struct { @@ -116,7 +116,7 @@ func connectDb(name string) (*sqlite3.Conn, error) { func initTables(db *sqlite3.Conn) { db.Exec("create table info(id int, key text, value text)") - db.Exec("insert into info (key, value) values('version', '0.01')") + db.Exec("insert into info (key, value) values('version', '$a')", version) db.Exec("create table users(id integer primary key autoincrement, name text, admin boolean)") db.Exec("create table polls(id integer primary key autoincrement, title text, user_id int)") |