This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/drupal/console-en/translations/database.add.yml
2018-11-23 12:29:20 +00:00

26 lines
968 B
YAML

description: 'Add a database to settings.php'
options:
database: 'The database name'
username: 'The database username'
password: 'The database password'
prefix: 'The database prefix'
host: 'The database host address'
port: 'The database host port'
driver: 'The database driver'
questions:
database: 'Enter the database name'
username: 'Enter the username to access the database'
password: 'Enter password for the database user'
prefix: 'Enter the database prefix'
host: 'Enter the database host address'
port: 'Enter the database host port'
driver: 'Enter the database driver'
error: 'Could not write the site settings file. Either run this command as sudo or temporarily change permissions to allow write access to settings.php.'
examples:
- description: 'Add a database to the settings.php'
execution: |
drupal database:add \
--database=DATABASE \
--username=USERNAME \
--password=PASSWORD