Skip to content

Commit

Permalink
Added table preifx config for information schema table
Browse files Browse the repository at this point in the history
  • Loading branch information
sunel committed Mar 29, 2020
1 parent 05f1c54 commit 02bd89f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions config/eav.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,13 @@
'database',
\Eav\Attribute\Source\Boolean::class,
],

/*
|--------------------------------------------------------------------------
| Table prefix for information_schema table
|--------------------------------------------------------------------------
|
*/

'information_schema_prefix' => '',
];
2 changes: 1 addition & 1 deletion src/Flat/Entity/Complier.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function describe($table, $clouser = null)

$table = $connection->getTablePrefix().$table;

$result = \DB::table('information_schema.columns')
$result = \DB::table(config('eav.information_schema_prefix', '').'information_schema.columns')
->where('table_schema', $database)
->where('table_name', $table)
->where($clouser)
Expand Down

0 comments on commit 02bd89f

Please sign in to comment.