protected function DbDumpCommand::configure

protected DbDumpCommand::configure()

Configures the current command.

Overrides DbCommandBase::configure

File

core/lib/Drupal/Core/Command/DbDumpCommand.php, line 41

Class

DbDumpCommand
Provides a command to dump the current database to a script.

Namespace

Drupal\Core\Command

Code

protected function configure() {
  $this->setName('dump-database-d8-mysql')
    ->setDescription('Dump the current database to a generation script')
    ->addOption('schema-only', NULL, InputOption::VALUE_OPTIONAL, 'A comma separated list of tables to only export the schema without data.', 'cache.*,sessions,watchdog');
  parent::configure();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Command!DbDumpCommand.php/function/DbDumpCommand::configure/8.1.x