starboard: Create database

master
Luther Wen Xu 2019-11-20 17:28:58 +07:00
parent 4bc658653b
commit ea84d81e0b
Signed by: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 4 additions and 3 deletions

@ -15,7 +15,8 @@ func init() {
panic(err)
}
db.SetMaxOpenConns(1)
db.Exec("CREATE TABLE xp(id STRING NOT NULL UNIQUE, xp INTEGER NOT NULL)")
db.Exec("CREATE TABLE shard(id STRING NOT NULL UNIQUE, shard INTEGER NOT NULL)")
db.Exec("CREATE TABLE prestige(id STRING NOT NULL UNIQUE, multiplier INTEGER NOT NULL)")
db.Exec("CREATE TABLE IF NOT EXISTS xp(id STRING NOT NULL UNIQUE, xp INTEGER NOT NULL)")
db.Exec("CREATE TABLE IF NOT EXISTS shard(id STRING NOT NULL UNIQUE, shard INTEGER NOT NULL)")
db.Exec("CREATE TABLE IF NOT EXISTS prestige(id STRING NOT NULL UNIQUE, multiplier INTEGER NOT NULL)")
db.Exec("CREATE TABLE IF NOT EXISTS starred(id STRING NOT NULL UNIQUE)")
}