Issue #2554241 by neclimdul: mysql's Schema implementation can only provide information about the default connection

8.0.x
webchick 2015-08-25 11:30:55 -07:00
parent b06eee2089
commit 2b0de9c17a
1 changed files with 1 additions and 2 deletions

View File

@ -61,8 +61,7 @@ class Schema extends DatabaseSchema {
$info['table'] = substr($table, ++$pos); $info['table'] = substr($table, ++$pos);
} }
else { else {
$db_info = Database::getConnectionInfo(); $info['database'] = $this->connection->getConnectionOptions()['database'];
$info['database'] = $db_info[$this->connection->getTarget()]['database'];
$info['table'] = $table; $info['table'] = $table;
} }
return $info; return $info;