开发者

In drupal, do I need to update after "site install"ing using drush?

开发者 https://www.devze.com 2023-01-29 04:52 出处:网络
When I use drush to site install (drush si profileName), do I开发者_StackOverflow中文版 need to run an update so all the modules will run what they need as part as their update methods, or does a fres

When I use drush to site install (drush si profileName), do I开发者_StackOverflow中文版 need to run an update so all the modules will run what they need as part as their update methods, or does a fresh "site install" doesn't require an update ?

If it matters, I'm talking about drupal 7. RC1 to be exact.


drush site-install does the same thing as a GUI site install: that is, it only installs local install profiles and does not update. The reason is presumably installation profiles are designed and tested around specific versions of modules.

You can update after the site install by running drush update.

In terms of whether or not you should run update.php (i.e. drush updatedb) after a site install to get the latest changes from hook_update_N() and hook_install(), you don't need to worry about it. hook_install() should always contain the latest version of the module's schema, and hook_install() is always invoked the first time a module is enabled.

0

精彩评论

暂无评论...
验证码 换一张
取 消