Explorar o código

Remove warning
* Remove a warning if modes don't match.

aleos %!s(int64=5) %!d(string=hai) anos
pai
achega
1921912fc1
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/common/sql.cpp

+ 1 - 3
src/common/sql.cpp

@@ -1080,10 +1080,8 @@ void Sql_UpgradesChecker(Sql *sql_handle, e_sql_database schema) {
 			std::string mode = "Prerenewal";
 #endif
 
-			if (compiledMode != update->mode) {
-				ShowError("Sql_UpgradesChecker: The server's current mode of '%s' differs from the mode '%s' provided by the update. Skipping.\n", mode.c_str(), update->mode == MODE_RENEWAL ? "Renewal" : "Prerenewal");
+			if (compiledMode != update->mode) // Only apply if mode is a match
 				continue;
-			}
 		}
 
 		if (!(update->database & schema)) // Only apply to the specific schema