correção do bug de criação de inventario
This commit is contained in:
Binary file not shown.
@@ -68,7 +68,7 @@ func registrar(c echo.Context) error {
|
||||
return jsonError(c, http.StatusInternalServerError, "erro ao criar inventario de poderes do player: "+player)
|
||||
}
|
||||
|
||||
query = fmt.Sprintf(`CREATE TABLE inv_%s (id INT NOT NULL AUTO_INCREMENT, item_nome VARCHAR(30) NOT NULL , quantidade INT NOT NULL DEFAULT '1' , item_peso INT NOT NULL DEFAULT '1' , item_durabilit BOOLEAN NOT NULL DEFAULT FALSE ) ENGINE = InnoDB;`, player)
|
||||
query = fmt.Sprintf("CREATE TABLE inv_%s (id INT NOT NULL AUTO_INCREMENT, item_nome VARCHAR(30) NOT NULL, quantidade INT NOT NULL DEFAULT '1', item_peso INT NOT NULL DEFAULT '1', item_durabilit BOOLEAN NOT NULL DEFAULT FALSE, PRIMARY KEY (`id`)) ENGINE = InnoDB;", player)
|
||||
newInv, err := db.Query(query)
|
||||
if err != nil {
|
||||
return jsonError(c, http.StatusInternalServerError, "erro ao criar o inventario do player: "+player)
|
||||
|
||||
Reference in New Issue
Block a user