This commit is contained in:
shoopea 2019-05-25 15:42:34 +08:00
parent 3c3c298466
commit 17ebe4591e

12
sql.go
View File

@ -313,18 +313,6 @@ func initDB() {
failOnError(err, "initDB : populate table code_obj_type")
log.Println("initDB : code_obj_type populated ...")
_, err = db.Exec(`INSERT INTO code_obj_castle (id, intl_id, user_id, name)
VALUES (` + strconv.Itoa(castleDeer) + `, "deer", "🦌", "Deerhorn")
,(` + strconv.Itoa(castleDragon) + `, "dragon", "🐉", "Dragonscale")
,(` + strconv.Itoa(castleHighnest) + `, "highnest", "🦅", "Highnest")
,(` + strconv.Itoa(castleMoon) + `, "moon", "🌑", "Moonlight")
,(` + strconv.Itoa(castlePotato) + `, "potato", "🥔", "Potato")
,(` + strconv.Itoa(castleShark) + `, "shark", "🦈", "Sharkteeth")
,(` + strconv.Itoa(castleWolf) + `, "wolf", "🐺", "Wolfpack")
;`)
failOnError(err, "initDB : populate table code_obj_castle")
log.Println("initDB : code_obj_castle populated ...")
_, err = db.Exec(`INSERT INTO code_obj_sub_type (id, intl_id, name, obj_type_id)
VALUES (` + strconv.Itoa(objSubTypeUser) + `, "user", "User", ` + strconv.Itoa(objTypeUser) + `)
(` + strconv.Itoa(objSubTypeGuild) + `, "guild", "Guild", ` + strconv.Itoa(objTypeGuild) + `)