Skip to content

Commit 2f33c61

Browse files
author
Tom Schlick
committed
make sure we are excluding the migraitons table for pgsql
1 parent f58b238 commit 2f33c61

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Commands/MigrateDumpCommand.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,18 @@ function ($line) {
330330
return $exit_code;
331331
}
332332

333+
/**
334+
* @param array $db_config
335+
* @param string $data_sql_path
336+
*
337+
* @return int
338+
*/
333339
private static function pgsqlDataDump(array $db_config, string $data_sql_path) : int
334340
{
335341
passthru(
336342
static::pgsqlCommandPrefix($db_config)
337343
. ' --file=' . escapeshellarg($data_sql_path)
344+
. ' --exclude-table=' . escapeshellarg($db_config['database'] . '.migrations')
338345
. ' --data-only',
339346
$exit_code
340347
);

0 commit comments

Comments
 (0)