put backticks around table/column names

This commit is contained in:
Nicolas Gourdon 2019-04-30 19:23:04 +02:00
parent 7cca1253f7
commit a02aa18985

View file

@ -19,7 +19,7 @@ func addTeamIsAllRepositories(x *xorm.Engine) error {
return err
}
_, err := x.Exec("UPDATE team SET is_all_repositories = ? WHERE name=?",
_, err := x.Exec("UPDATE `team` SET `is_all_repositories` = ? WHERE `name`=?",
true, "Owners")
return err
}