File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66use Exception ;
77use Flarum \Console \AbstractCommand ;
88use Flarum \Foundation \{Config , Paths };
9+ use Spatie \DbDumper \Compressors \{Bzip2Compressor , GzipCompressor };
910use Spatie \DbDumper \Databases \MySql ;
10- use Spatie \DbDumper \Compressors \{GzipCompressor , Bzip2Compressor };
1111use Spatie \DbDumper \Exceptions \CannotSetParameter ;
1212use Symfony \Component \Console \Input \{InputArgument , InputOption };
1313
@@ -19,7 +19,7 @@ class DumbDbCommand extends AbstractCommand
1919 ];
2020
2121 /**
22- * Inspired by WP-CLI's DB_Command
22+ * Inspired by WP-CLI's DB_Command.
2323 * @see https://github.com/wp-cli/db-command/blob/e9c4e8ab61e99f7fa7e31e584c2b2b5d54d071db/src/DB_Command.php#L1937
2424 */
2525 private const ALLOWED_MYSQLDUMP_OPTIONS = [
@@ -207,7 +207,6 @@ protected function fire(): int
207207 mkdir ($ dir , 0755 , true );
208208 }
209209
210-
211210 if ($ binaryPath = $ this ->input ->getOption ('binary-path ' )) {
212211 $ dumper ->setDumpBinaryPath ($ binaryPath );
213212 }
@@ -252,6 +251,7 @@ protected function fire(): int
252251 $ this ->info ("Database dumped successfully to: $ path " );
253252 } catch (Exception $ e ) {
254253 $ this ->error ('Failed to dump database: ' .$ e ->getMessage ());
254+
255255 return 1 ;
256256 }
257257
You can’t perform that action at this time.
0 commit comments