Drupal-console: [site:install] Allow re-install

Created on 17 May 2016  路  10Comments  路  Source: hechoendrupal/drupal-console

At the moment if you already installed the site and you want to reinstall it, you'll have to drop the database, delete the mysql config in settings.php and finally you can install it....

Could be a way to simplify this? if you are working with profiles this is a massive problem...

Most helpful comment

All 10 comments

馃憤 on this one

@jmolivas thanks! in Drush you are able to install it even if there is data in the DB.
I dunno if we should create a command for restore the settings, or allow install with a _dirty DB_ or the database:drop should also restore the settings..

The PR above was closed without explanation; any further thoughts on this?

In Drush, you may reinstall but it appears Drupal must be first able to bootstrap. I have a workflow where it would be nice to have the installer determine the database config from the existing settings.php file, while not requiring the database have any data/tables.

@bradjones1 this is a must have feature for the project I can test what @Saphyel was working on and resurrect the PR.

Well I closed it myself because I'm not longer working on it... If you have an idea @bradjones1 feel free to overtake it.

@bradjones1 @Saphyel this is done and will be included on upcoming release.

This should be executed as

drupal site:install --force --no-interaction

drupal-site-install-force

This seems merged? Is it not? Close?

@nvaken Yes it is and I've been using it per above, though I don't have permissions to close. Looks done.

Was this page helpful?
0 / 5 - 0 ratings