Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
Core Commands
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
8 Mar 2011 at 12:34 UTC
Updated:
11 Sep 2013 at 10:58 UTC
Jump to comment: Most recent file
Comments
Comment #1
tomswiggers commentedComment #2
tomswiggers commentedComment #3
moshe weitzman commentedMakes sense. Patches welcome.
Comment #4
greg.1.anderson commentedPretty cool.
Needs a d7 version.
The schema version should be optional; if not specified, then run all of the pending updates for the specified module.
It would also be useful to be able to specify 7001-7003 or 7002+, for example, to run a range of schema updates, or everything from a given number through to the end. Would -7004 also make sense, perhaps? (Run from current up to and uncluding 7004)?
Your documentation says 'options' => array(, but you mean 'arguments' => array.
Comment #5
tomswiggers commentedIndeed I have to do this also for drupal 7.
Your remarks are indeed useful.
Maybe we can add some extra argument instead of -7004 7004+? What do you think?
I already changed options -> arguments :-)
Comment #6
greg.1.anderson commented@tomswiggers: ranges of updates would be an optional enhancement; one could always just run the command in a loop to do multiple updates. Providing similar functionality in options would also be acceptable, but I don't think it would be worth adding this optional feature unless it was easier to remember and type than
for x in 7001 7002 7003 ; do .... Just taking N arguments would be another possibility.Comment #7
tomswiggers commentedI changed the code a little bit.
Now you can do:
drush updatedb mymodule
This we do all pending updates for mymodule
drush updatedb mymodule 6004
This will do update 6004 for mymodule
This weekend I will try to add the drupal 7 version
Comment #8
moshe weitzman commentedComment #9
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If this feature is still desired, you may copy it to our Github project. For best results, create a Pull Request that has been updated for the master branch. Post a link here to the PR, and please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.