Open kalenjordan opened 11 years ago
This command would have to evaluate the realpath (taking symlink sources into account) to make sure it also works with modman. Also, bumping the version number might result in accidently executing the upgrade script before you actually implemented it. (Ok, now I get why you also want the sys:setup:rewind command :)
Good point! I wasn't thinking of symlink support yet :)
:+1: Like that. Currently i use Magicento PhpStorm Plugin. But a nice to have for n98-magerun.
Oh nice. How do you do it using Magicento??
@kalenjordan My mistake. I use Magicento to rewind the version. New scripts are currently not supported.
Oh cool! How do you do that? I actually looked at it yesterday for creating new upgrade scripts - it seems like it has some basic support but it's not too automated.
Open your install script in editor and press Alt+M. There is a option to remove the setup script. It's intelligent to rollback to previous version.
I actually used that a couple times. I think it's exactly what I needed. Maybe we can close this issue.
I was thinking this might come in handy. Maybe you pass in a module as a parameter, and it creates a new upgrade script with the proper name, and also bumps config.xml version number.
Let me know if this seems useful and I'll contribute it.