refactor(Core/DB): Deprecate MariaDB 10.4 and below (#9675)

This commit is contained in:
Kitzunu
2021-12-14 15:15:44 +01:00
committed by GitHub
parent 6fa91dbe1f
commit 04fd8791e1
3 changed files with 27 additions and 27 deletions

44
.github/SECURITY.md vendored
View File

@@ -5,7 +5,9 @@
We support the following versions of dependencies. We support the following versions of dependencies.
:white_check_mark: = supported :white_check_mark: = supported
:red_circle: = NOT supported :red_circle: = NOT supported
unspecified = might work but no guarantee unspecified = might work but no guarantee
Versions of AzerothCore: Versions of AzerothCore:
@@ -28,40 +30,38 @@ Versions of MariaDB:
| --------------- | ------------------ | | --------------- | ------------------ |
| 10.6 | :white_check_mark: | | 10.6 | :white_check_mark: |
| 10.5 | :white_check_mark: | | 10.5 | :white_check_mark: |
| 10.4 | :white_check_mark: | | 10.4 and lower | :red_circle: |
| 10.3 | :white_check_mark: |
| 10.2 | :white_check_mark: |
Versions of CLang: Versions of CLang:
| CLang Version | Supported | | CLang Version | Supported |
| --------------- | ------------------ | | ------------- | ------------------ |
| 12 | :white_check_mark: | | 12 | :white_check_mark: |
| 11 | :white_check_mark: | | 11 | :white_check_mark: |
| 10 | :white_check_mark: | | 10 | :white_check_mark: |
| 9 and lower | :red_circle: | | 9 and lower | :red_circle: |
Versions of GCC: Versions of GCC:
| GCC Version | Supported | | GCC Version | Supported |
| --------------- | ------------------ | | ----------- | ------------------ |
| 10 | :white_check_mark: | | 10 | :white_check_mark: |
| 9 | :white_check_mark: | | 9 | :white_check_mark: |
| 8 | :white_check_mark: | | 8 | :white_check_mark: |
| 7 and lower | :red_circle: | | 7 and lower | :red_circle: |
Versions of Ubuntu: Versions of Ubuntu:
| Ubuntu version | Supported | | Ubuntu version | Supported |
| --------------- | ------------------ | | -------------- | ------------------ |
| 20.04 | :white_check_mark: | | 20.04 | :white_check_mark: |
| 18.04 | :white_check_mark: | | 18.04 | :white_check_mark: |
Versions of macOS: Versions of macOS:
| macOS Version | Supported | | macOS Version | Supported |
| --------------- | ------------------ | | ------------- | ------------------ |
| 10.15 | :white_check_mark: | | 10.15 | :white_check_mark: |
**Note**: We do NOT support any repacks that may or may not have been made based on AzerothCore. Nor do we support any of the releases that are made under AzerothCore. **Note**: We do NOT support any repacks that may or may not have been made based on AzerothCore. Nor do we support any of the releases that are made under AzerothCore.

View File

@@ -40,7 +40,7 @@ endif(WIN32)
# Find MariaDB for Windows # Find MariaDB for Windows
if (WIN32) if (WIN32)
# Set know versions MariaDB # Set know versions MariaDB
set(_MARIADB_KNOWN_VERSIONS "MariaDB 10.6" "MariaDB 10.5" "MariaDB 10.4" "MariaDB 10.3" "MariaDB 10.2") set(_MARIADB_KNOWN_VERSIONS "MariaDB 10.6" "MariaDB 10.5")
# Set default options # Set default options
set(MARIADB_FOUND_LIB 0) set(MARIADB_FOUND_LIB 0)

View File

@@ -40,8 +40,8 @@
#endif #endif
#if MARIADB_VERSION_ID >= 100600 #if MARIADB_VERSION_ID >= 100600
#define MIN_MYSQL_SERVER_VERSION 100200u #define MIN_MYSQL_SERVER_VERSION 100500u
#define MIN_MYSQL_CLIENT_VERSION 30203u #define MIN_MYSQL_CLIENT_VERSION 30503u
#else #else
#define MIN_MYSQL_SERVER_VERSION 50700u #define MIN_MYSQL_SERVER_VERSION 50700u
#define MIN_MYSQL_CLIENT_VERSION 50700u #define MIN_MYSQL_CLIENT_VERSION 50700u
@@ -72,7 +72,7 @@ DatabaseWorkerPool<T>::DatabaseWorkerPool()
bool isSameClientDB = true; // Client version 3.2.3? bool isSameClientDB = true; // Client version 3.2.3?
#endif #endif
WPFatal(isSupportClientDB, "AzerothCore does not support MySQL versions below 5.7 and MariaDB 10.2\nSearch the wiki for ACE00043 in Common Errors (https://www.azerothcore.org/wiki/common-errors)."); WPFatal(isSupportClientDB, "AzerothCore does not support MySQL versions below 5.7 and MariaDB 10.5\nSearch the wiki for ACE00043 in Common Errors (https://www.azerothcore.org/wiki/common-errors).");
WPFatal(isSameClientDB, "Used MySQL library version (%s id %lu) does not match the version id used to compile AzerothCore (id %u).\nSearch the wiki for ACE00046 in Common Errors (https://www.azerothcore.org/wiki/common-errors).", WPFatal(isSameClientDB, "Used MySQL library version (%s id %lu) does not match the version id used to compile AzerothCore (id %u).\nSearch the wiki for ACE00046 in Common Errors (https://www.azerothcore.org/wiki/common-errors).",
mysql_get_client_info(), mysql_get_client_version(), MYSQL_VERSION_ID); mysql_get_client_info(), mysql_get_client_version(), MYSQL_VERSION_ID);
} }
@@ -402,7 +402,7 @@ uint32 DatabaseWorkerPool<T>::OpenConnections(InternalIndex type, uint8 numConne
} }
else if (connection->GetServerVersion() < MIN_MYSQL_SERVER_VERSION) else if (connection->GetServerVersion() < MIN_MYSQL_SERVER_VERSION)
{ {
LOG_ERROR("sql.driver", "AzerothCore does not support MySQL versions below 5.7"); LOG_ERROR("sql.driver", "AzerothCore does not support MySQL versions below 5.7 or MariaDB versions below 10.5");
return 1; return 1;
} }
else else