File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
use Exception ;
7
7
use Flarum \Console \AbstractCommand ;
8
8
use Flarum \Foundation \{Config , Paths };
9
+ use Spatie \DbDumper \Compressors \{Bzip2Compressor , GzipCompressor };
9
10
use Spatie \DbDumper \Databases \MySql ;
10
- use Spatie \DbDumper \Compressors \{GzipCompressor , Bzip2Compressor };
11
11
use Spatie \DbDumper \Exceptions \CannotSetParameter ;
12
12
use Symfony \Component \Console \Input \{InputArgument , InputOption };
13
13
@@ -19,7 +19,7 @@ class DumbDbCommand extends AbstractCommand
19
19
];
20
20
21
21
/**
22
- * Inspired by WP-CLI's DB_Command
22
+ * Inspired by WP-CLI's DB_Command.
23
23
* @see https://github.com/wp-cli/db-command/blob/e9c4e8ab61e99f7fa7e31e584c2b2b5d54d071db/src/DB_Command.php#L1937
24
24
*/
25
25
private const ALLOWED_MYSQLDUMP_OPTIONS = [
@@ -207,7 +207,6 @@ protected function fire(): int
207
207
mkdir ($ dir , 0755 , true );
208
208
}
209
209
210
-
211
210
if ($ binaryPath = $ this ->input ->getOption ('binary-path ' )) {
212
211
$ dumper ->setDumpBinaryPath ($ binaryPath );
213
212
}
@@ -252,6 +251,7 @@ protected function fire(): int
252
251
$ this ->info ("Database dumped successfully to: $ path " );
253
252
} catch (Exception $ e ) {
254
253
$ this ->error ('Failed to dump database: ' .$ e ->getMessage ());
254
+
255
255
return 1 ;
256
256
}
257
257
You can’t perform that action at this time.
0 commit comments