diff options
Diffstat (limited to 'blavote.go')
-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)") |