mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-12 14:58:41 +00:00
remove db prefix
This commit is contained in:
parent
5cad309211
commit
d08c9e741e
|
|
@ -46,7 +46,7 @@ final class Installer extends InstallerAbstract
|
||||||
public static function installExternal(DatabasePool $dbPool, array $data) : void
|
public static function installExternal(DatabasePool $dbPool, array $data) : void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$dbPool->get()->con->query('select 1 from `' . $dbPool->get()->prefix . 'nav`');
|
$dbPool->get()->con->query('select 1 from `nav`');
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,6 @@ class Navigation
|
||||||
$this->nav = [];
|
$this->nav = [];
|
||||||
|
|
||||||
$query = new Builder($this->dbPool->get('select'));
|
$query = new Builder($this->dbPool->get('select'));
|
||||||
$query->prefix($this->dbPool->get('select')->prefix);
|
|
||||||
$sth = $query->select('*')
|
$sth = $query->select('*')
|
||||||
->from('nav')
|
->from('nav')
|
||||||
->whereIn('nav.nav_pid', $hashes)
|
->whereIn('nav.nav_pid', $hashes)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user