Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I specifically want Drush to list, of the modules that have available updates, which of those contain database updates. Is this possible with Drush?

Edit for clarification: I know drush up will list all modules that have available updates, yes, but not all of those updates will have database updates that go along with them. I strictly want a list of updates that have associated database updates.

share|improve this question

3 Answers 3

up vote 7 down vote accepted

drush updatedb --no (shorthand: drush up -n) will list them and take no further action.

share|improve this answer
    
Brilliant! Thank you. I looked through drush help up but nothing turned up in there, obviously... doh. –  Lester Peabody Feb 4 '12 at 5:38

This is a feature request; please post it in the drush issue queue. Note that this is not a terribly easy thing for Drush to do; it would have to download all of the projects to be updated and inspect them prior to prompting you.

share|improve this answer
    
I wasn't so much requesting the feature as I was asking if it existed in the first place. I will add this to the queue though, thanks. –  Lester Peabody Feb 3 '12 at 22:34
    
I was considering how to do this during the pm-updatecode operation. @moshe's suggestion is much better; just grab all of the new code, then revert the modules you don't want to keep after inspecting the output of drush updatedb --no. –  greg_1_anderson Feb 6 '12 at 18:43

"drush pm-update" will give you a list of modules that have updates available.

share|improve this answer
    
You miss my meaning. drush up will list all modules that have available updates, yes, but not all of those updates will have database updates that go along with them. I strictly want a list of updates that have associated database updates. –  Lester Peabody Feb 3 '12 at 22:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.