diff --git a/server/src/manager/SqlDataManager.cpp b/server/src/manager/SqlDataManager.cpp index 41c9029..1a8d31c 100644 --- a/server/src/manager/SqlDataManager.cpp +++ b/server/src/manager/SqlDataManager.cpp @@ -478,7 +478,7 @@ bool SqlDataManager::update_database(std::string &error) { db_version(12); #endif case 11: - result = sql::command(this->sql(), "UPDATE TABLE `letters` SET `created` TO 0 WHERE 1;").execute(); + result = sql::command(this->sql(), "UPDATE TABLE `letters` SET `created` = 0 WHERE 1;").execute(); if(!result) { error = "Failed to reset offline messages timestamps"; return false;