File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -216,19 +216,16 @@ public function getColumnListing($table): array
216
216
217
217
/**
218
218
* Get the column type listing for a given table.
219
- *
220
- * @param string $table
221
- * @return array
222
219
*/
223
- public function getColumnTypeListing ($ table)
220
+ public function getColumnTypeListing (string $ table, ? string $ database = null ): array
224
221
{
225
222
[$ schema , $ table ] = $ this ->parseSchemaAndTable ($ table );
226
223
227
224
$ table = $ this ->connection ->getTablePrefix () . $ table ;
228
225
229
226
$ results = $ this ->connection ->select (
230
227
$ this ->grammar ->compileColumnListing (),
231
- [$ this ->connection ->getDatabaseName (), $ schema , $ table ]
228
+ [$ database ?? $ this ->connection ->getDatabaseName (), $ schema , $ table ]
232
229
);
233
230
234
231
/** @var PostgresProcessor $processor */
You can’t perform that action at this time.
0 commit comments