Commit d0a7d335 authored by Mahmoud Aglan's avatar Mahmoud Aglan

sdgfhsrg

sethderyj
parent 4a24c7a3
......@@ -112,7 +112,7 @@ final class GLSyncService
];
foreach ($optionalTables as $table => $query) {
if ($db->selectOne("SHOW TABLES LIKE ?", [$table])) {
if ($db->selectOne("SELECT 1 FROM information_schema.tables WHERE table_schema = DATABASE() AND table_name = ?", [$table])) {
$queries[] = $query;
}
}
......
......@@ -37,7 +37,7 @@ return function (Database $db): void {
];
foreach ($optionalTables as $table => $query) {
$exists = $db->selectOne("SHOW TABLES LIKE ?", [$table]);
$exists = $db->selectOne("SELECT 1 FROM information_schema.tables WHERE table_schema = DATABASE() AND table_name = ?", [$table]);
if ($exists) {
$minMaxQueries[] = $query;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment