You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--pg-namespace=PG-NAMESPACE
translate to -n, --schema=SCHEMA
dump the named schema(s) only
--pg-exclude-namespace=PG-EXCLUDE-NAMESPACE
translate to -N, --exclude-schema=SCHEMA
do NOT dump the named schema(s)
Copy file name to clipboardExpand all lines: src/Command/Db/DbDumpCommand.php
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ protected function configure()
21
21
$this->setName('db:dump')
22
22
->setDescription('Create a local dump of the remote database');
23
23
$this->addOption('schema', null, InputOption::VALUE_REQUIRED, 'The schema to dump. Omit to use the default schema (usually "main").')
24
+
->addOption('pg-namespace', null, InputOption::VALUE_REQUIRED| InputOption::VALUE_IS_ARRAY, 'Dump the named namespace/schema(s) only (Postgresql specific)')
25
+
->addOption('pg-exclude-namespace', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Do NOT dump the named namespace/schema(s) (Postgresql specific)')
24
26
->addOption('file', 'f', InputOption::VALUE_REQUIRED, 'A custom filename for the dump')
25
27
->addOption('directory', 'd', InputOption::VALUE_REQUIRED, 'A custom directory for the dump')
26
28
->addOption('gzip', 'z', InputOption::VALUE_NONE, 'Compress the dump using gzip')
@@ -52,6 +54,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
0 commit comments