Fixed query
This commit is contained in:
parent
5e8ed17ef7
commit
dd4a871bf0
@ -478,9 +478,9 @@ bool SqlDataManager::update_database(std::string &error) {
|
||||
db_version(12);
|
||||
#endif
|
||||
case 11:
|
||||
result = sql::command(this->sql(), "UPDATE TABLE `letters` SET `created` = 0 WHERE 1;").execute();
|
||||
result = sql::command(this->sql(), "UPDATE `letters` SET `created` = 0 WHERE 1;").execute();
|
||||
if(!result) {
|
||||
error = "Failed to reset offline messages timestamps";
|
||||
error = "Failed to reset offline messages timestamps (" + result.fmtStr() + ")";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user