netz98 / n98-magerun

The swiss army knife for Magento developers, sysadmins and devops. The tool provides a huge set of well tested command line commands which save hours of work time. All commands are extendable by a module API.
http://magerun.net/
Other
1.44k stars 400 forks source link

Command for creating new upgrade scripts - sys:setup:new #132

Open kalenjordan opened 11 years ago

kalenjordan commented 11 years ago

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.

fbrnc commented 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 :)

kalenjordan commented 11 years ago

Good point! I wasn't thinking of symlink support yet :)

cmuench commented 11 years ago

:+1: Like that. Currently i use Magicento PhpStorm Plugin. But a nice to have for n98-magerun.

kalenjordan commented 11 years ago

Oh nice. How do you do it using Magicento??

cmuench commented 11 years ago

@kalenjordan My mistake. I use Magicento to rewind the version. New scripts are currently not supported.

kalenjordan commented 11 years ago

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.

cmuench commented 11 years ago

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.

kalenjordan commented 11 years ago

I actually used that a couple times. I think it's exactly what I needed. Maybe we can close this issue.