migrations boolean() -> smallInteger()

This commit is contained in:
xiaomlove
2026-04-14 13:12:56 +07:00
parent 4d4af87dc9
commit 4d54e08918
45 changed files with 136 additions and 103 deletions
+2 -3
View File
@@ -8,10 +8,9 @@ class DBPdo implements DBInterface
private $driver;
private $lastStmt;
public function connect($host, $username, $password, $database, $port)
public function connect($host, $username, $password, $database, $port, $driver = 'mysql')
{
$driver = $this->driver = nexus_config('nexus.database.default');
$this->driver = $driver;
if ($driver === 'mysql') {
$dsn = "mysql:host={$host};port={$port};dbname={$database};charset=utf8mb4";
} elseif ($driver === 'pgsql') {