remove db prefix

This commit is contained in:
Dennis Eichhorn 2020-03-12 18:03:50 +01:00
parent 5cad309211
commit d08c9e741e
2 changed files with 1 additions and 2 deletions

View File

@ -46,7 +46,7 @@ final class Installer extends InstallerAbstract
public static function installExternal(DatabasePool $dbPool, array $data) : void
{
try {
$dbPool->get()->con->query('select 1 from `' . $dbPool->get()->prefix . 'nav`');
$dbPool->get()->con->query('select 1 from `nav`');
} catch (\Exception $e) {
return;
}

View File

@ -90,7 +90,6 @@ class Navigation
$this->nav = [];
$query = new Builder($this->dbPool->get('select'));
$query->prefix($this->dbPool->get('select')->prefix);
$sth = $query->select('*')
->from('nav')
->whereIn('nav.nav_pid', $hashes)