test
This commit is contained in:
parent
3c3c298466
commit
17ebe4591e
12
sql.go
12
sql.go
@ -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) + `)
|
||||
|
Loading…
Reference in New Issue
Block a user