We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff8dfee + 1d4f323 commit f84a835Copy full SHA for f84a835
src/Commands/BackupTableCommand.php
@@ -8,7 +8,9 @@
8
class BackupTableCommand extends Command
9
{
10
const SUCCESS = 0;
11
+
12
const FAILURE = 1;
13
14
protected $signature = 'backup:tables {targets* : The table names or model classes to backup (space-separated)}';
15
16
protected $description = 'Backup a specific database table/s based on provided table names or model classes';
@@ -22,12 +24,14 @@ public function handle()
22
24
23
25
if (! $result) {
26
$this->error('Failed to backup table.');
27
28
return self::FAILURE;
29
}
30
31
return self::SUCCESS;
32
} catch (\Exception $e) {
33
$this->error("Error backing up table: {$e->getMessage()}");
34
35
36
37
0 commit comments