We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7f27d5 commit e5e1ea8Copy full SHA for e5e1ea8
src/Illuminate/Database/Schema/PostgresSchemaState.php
@@ -16,12 +16,15 @@ class PostgresSchemaState extends SchemaState
16
*/
17
public function dump(Connection $connection, $path)
18
{
19
+ $schemaBuilder = $connection->getSchemaBuilder();
20
+ $schema = $schemaBuilder->getConnection()->getConfig('schema');
21
+
22
$excludedTables = collect($connection->getSchemaBuilder()->getAllTables())
23
->map->tablename
24
->reject(function ($table) {
25
return $table === $this->migrationTable;
- })->map(function ($table) {
- return '--exclude-table-data='.$table;
26
+ })->map(function ($table) use ($schema) {
27
+ return '--exclude-table-data='.$schema.'.'.$table;
28
})->implode(' ');
29
30
$this->makeProcess(
0 commit comments