feat: implement MySqlDriver for dynamic database connection and schema discovery
This commit is contained in:
@@ -23,7 +23,7 @@ class MySqlDriver implements DatabaseDriverInterface, SchemaDiscoveryInterface
|
||||
'charset' => 'utf8mb4',
|
||||
'collation' => 'utf8mb4_unicode_ci',
|
||||
'prefix' => '',
|
||||
'strict' => true,
|
||||
'strict' => false,
|
||||
'engine' => null,
|
||||
]);
|
||||
|
||||
@@ -89,7 +89,7 @@ class MySqlDriver implements DatabaseDriverInterface, SchemaDiscoveryInterface
|
||||
REFERENCED_TABLE_NAME IS NOT NULL AND
|
||||
TABLE_SCHEMA = ?
|
||||
";
|
||||
|
||||
|
||||
$dbName = DB::connection($this->connectionName)->getDatabaseName();
|
||||
return $this->query($sql, [$table, $dbName]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user