Merge branch 'QA_5_2'

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-04-05 10:24:00 -03:00
commit 9d844613d0
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8

View File

@ -1586,6 +1586,11 @@ class Relation
$createQueries = null;
$foundOne = false;
foreach ($tablesToFeatures as $table => $feature) {
if (($GLOBALS['cfg']['Server'][$feature] ?? null) === false) {
// The feature is disabled by the user in config
continue;
}
// Check if the table already exists
// use the possible replaced name first and fallback on the table name
// if no replacement exists