test
This commit is contained in:
parent
9410554e7a
commit
2ea2d2bb1d
5
sql.go
5
sql.go
@ -236,6 +236,7 @@ func initDB() {
|
||||
,(` + strconv.Itoa(objTypeItem) + `, "item", "Item")
|
||||
;`)
|
||||
failOnError(err, "initDB : populate table code_obj_type")
|
||||
log.Println("initDB : code_obj_type populated ...")
|
||||
|
||||
_, err = db.Exec(`INSERT INTO code_obj_sub_type (id, intl_id, name, obj_type_id)
|
||||
VALUES (` + strconv.Itoa(objSubTypeMessageUnknown) + `, "unknown", "Unknown", ` + strconv.Itoa(objTypeMessage) + `)
|
||||
@ -272,6 +273,7 @@ func initDB() {
|
||||
,(` + strconv.Itoa(objSubTypeItemOther) + `, "item_other", "Time", ` + strconv.Itoa(objTypeItem) + `)
|
||||
;`)
|
||||
failOnError(err, "initDB : populate table code_obj_sub_type")
|
||||
log.Println("initDB : code_obj_sub_type populated ...")
|
||||
|
||||
_, err = db.Exec(`
|
||||
INSERT INTO obj (id, obj_type_id, obj_sub_type_id) VALUES
|
||||
@ -1226,8 +1228,9 @@ INSERT INTO obj_item (obj_id, intl_id, name, weight) VALUES
|
||||
(472, 'w99', 'Maiming Bulawa', 0);
|
||||
`)
|
||||
failOnError(err, "initDB : populate table obj_item #2")
|
||||
log.Println("initDB : obj_item populated ...")
|
||||
|
||||
log.Println("Database set up")
|
||||
log.Println("initDB : Database set up")
|
||||
}
|
||||
|
||||
func resetMsgParsingRules() {
|
||||
|
Loading…
Reference in New Issue
Block a user