Skip to content

Commit

Permalink
Capture empty tables for full dumps too
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnorthrip committed Feb 3, 2024
1 parent f2a19b4 commit 9be5c80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Commands/DBPull.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,12 @@ public function handle()
if (! $this->option('dry-run')) {
$this->ssh_table_dump_full($table);
}
} elseif ($ssh_table_count === 0) {
$action = ($this->option('dry-run')) ? 'Needs' : 'Pulling';
$this->info("$action full dump from $table");
if (! $this->option('dry-run')) {
$this->ssh_table_dump_full($table);
}
}
}

Expand Down

0 comments on commit 9be5c80

Please sign in to comment.