projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
db backup prior to drupal security update
[yaffs-website]
/
vendor
/
drupal
/
console
/
src
/
Command
/
Migrate
/
SetupCommand.php
diff --git
a/vendor/drupal/console/src/Command/Migrate/SetupCommand.php
b/vendor/drupal/console/src/Command/Migrate/SetupCommand.php
index 738c5eb437aa3764baa7297150b3ddd02994a939..4430d93870c92def47c38dcc2aab44bf732bacba 100644
(file)
--- a/
vendor/drupal/console/src/Command/Migrate/SetupCommand.php
+++ b/
vendor/drupal/console/src/Command/Migrate/SetupCommand.php
@@
-56,49
+56,49
@@
class SetupCommand extends Command
->setDescription($this->trans('commands.migrate.setup.description'))
->addOption(
'db-type',
->setDescription($this->trans('commands.migrate.setup.description'))
->addOption(
'db-type',
-
''
,
+
null
,
InputOption::VALUE_REQUIRED,
$this->trans('commands.migrate.setup.options.db-type')
)
->addOption(
'db-host',
InputOption::VALUE_REQUIRED,
$this->trans('commands.migrate.setup.options.db-type')
)
->addOption(
'db-host',
-
''
,
+
null
,
InputOption::VALUE_REQUIRED,
$this->trans('commands.migrate.setup.options.db-host')
)
->addOption(
'db-name',
InputOption::VALUE_REQUIRED,
$this->trans('commands.migrate.setup.options.db-host')
)
->addOption(
'db-name',
-
''
,
+
null
,
InputOption::VALUE_REQUIRED,
$this->trans('commands.migrate.setup.options.db-name')
)
->addOption(
'db-user',
InputOption::VALUE_REQUIRED,
$this->trans('commands.migrate.setup.options.db-name')
)
->addOption(
'db-user',
-
''
,
+
null
,
InputOption::VALUE_REQUIRED,
$this->trans('commands.migrate.setup.options.db-user')
)
->addOption(
'db-pass',
InputOption::VALUE_REQUIRED,
$this->trans('commands.migrate.setup.options.db-user')
)
->addOption(
'db-pass',
-
''
,
+
null
,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.migrate.setup.options.db-pass')
)
->addOption(
'db-prefix',
InputOption::VALUE_OPTIONAL,
$this->trans('commands.migrate.setup.options.db-pass')
)
->addOption(
'db-prefix',
-
''
,
+
null
,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.migrate.setup.options.db-prefix')
)
->addOption(
'db-port',
InputOption::VALUE_OPTIONAL,
$this->trans('commands.migrate.setup.options.db-prefix')
)
->addOption(
'db-port',
-
''
,
+
null
,
InputOption::VALUE_REQUIRED,
$this->trans('commands.migrate.setup.options.db-port')
)
->addOption(
'source-base_path',
InputOption::VALUE_REQUIRED,
$this->trans('commands.migrate.setup.options.db-port')
)
->addOption(
'source-base_path',
-
''
,
+
null
,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.migrate.setup.options.source-base_path')
);
InputOption::VALUE_OPTIONAL,
$this->trans('commands.migrate.setup.options.source-base_path')
);
@@
-183,7
+183,7
@@
class SetupCommand extends Command
if (!$drupal_version = $this->getLegacyDrupalVersion($this->migrateConnection)) {
$io->error($this->trans('commands.migrate.setup.migrations.questions.not-drupal'));
if (!$drupal_version = $this->getLegacyDrupalVersion($this->migrateConnection)) {
$io->error($this->trans('commands.migrate.setup.migrations.questions.not-drupal'));
- return;
+ return
1
;
}
$database = $this->getDBInfo();
}
$database = $this->getDBInfo();
@@
-202,5
+202,7
@@
class SetupCommand extends Command
)
);
}
)
);
}
+
+ return 0;
}
}
}
}