I've been playing around with the new installcore command and noticed there was no support for database prefixes -- so here's a patch for it. It allows the prefix to be passed with the db-prefix option during the initial install, or through an existing settings.php for re-installs or if an array-based prefix is needed.
I'm very excited by the possibilities of installcore and looking forward to painless fully-automated Drupal deployment! :D
Cheers,
Carlos
| Comment | File | Size | Author |
|---|---|---|---|
| db_prefix.patch | 2.19 KB | carlos8f |
Comments
Comment #1
carlos8f commentedComment #2
moshe weitzman commentedCommitted. I added a tiny refactor as well. Thanks.
I'm a bit unhappy about the name installcore. This command will execute any install profile, and those profiles can include core, contrib, and custom modules. Perhaps 'installsite', 'install' or 'installprofile'? Opinions?
Comment #3
carlos8f commentedThanks for getting to that so quick!
I agree that the command is a little misleading. I thought about it for a while and, while I like the simplicity of "install", it brought up this little problem:
drush install- could mirror install.phpdrush update- mirrors update.php, except it does more (downloads modules)drush updatedb- actually mirrors update.phpdrush uninstall- sounds like a sibling forinstall, but if not if "installcore" is renamed toinstall.Also, when browsing the code I came accross this:
commands/pm/pm.drush.inc:91
Then looking at "installcore" and "installsite", there isn't any precedent for including either "core" or "site" in a command... but i'm probably leaning towards "installsite" since it implies more than just core installation.
Overall, it seems that there is a lack of consistency or convention in the command names (took me a while to get the hang of it at first). But hey, php itself has lots of those issues too :)
Perhaps we need a follow-up issue for refactoring the command names for drush 3.0.