src/Phinx/Db/Adapter/MysqlAdapter.php 1 location
|
@@ 767-769 (lines=3) @@
|
| 764 |
|
*/ |
| 765 |
|
protected function getForeignKeys($tableName) |
| 766 |
|
{ |
| 767 |
|
if (strpos($tableName, '.') !== false) { |
| 768 |
|
list($schema, $tableName) = explode('.', $tableName); |
| 769 |
|
} |
| 770 |
|
|
| 771 |
|
$foreignKeys = []; |
| 772 |
|
$rows = $this->fetchAll(sprintf( |
src/Phinx/Db/Adapter/PostgresAdapter.php 1 location
|
@@ 1367-1369 (lines=3) @@
|
| 1364 |
|
{ |
| 1365 |
|
$schema = $this->getGlobalSchemaName(); |
| 1366 |
|
$table = $tableName; |
| 1367 |
|
if (false !== strpos($tableName, '.')) { |
| 1368 |
|
list($schema, $table) = explode('.', $tableName); |
| 1369 |
|
} |
| 1370 |
|
|
| 1371 |
|
return [ |
| 1372 |
|
'schema' => $schema, |