2.0.1 to 2.0.2 upgrade steps

Sumaleth

Joined: 2005-11-04
Posts: 9
Posted: Thu, 2005-12-15 00:22

What actions are performed by the 2.0.1->2.0.2 upgrade? I've figured out:

. unzip changed-files-core.zip
. unzip changed-files-zipcart.zip
. delete g2data/install.log
. delete docs/LOCALIZING
. delete g2data/cache/*
. update _version in the database from 1.0.0.1 to 1.0.0.2

Yet the upgrade script is still automatically coming up when I load Gallery. I'm trying to do the upgrade without using that upgrade script (this is for the Installatron G2 auto-installer).

What modifications am I missing?

Thanks,
Rowan.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-12-15 00:25

you updated the database manually instead of with the normal upgrade/index.php ?? if so, revert it.

just overwrite the existing files with the the changed ones.
then browse to your g2, the upgrader will start automatically.

 
Sumaleth

Joined: 2005-11-04
Posts: 9
Posted: Thu, 2005-12-15 01:48

I need to perform the upgrade without using the upgrade/index.php script. This is for Installatron (http://www.installatron.com), which is an auto-installer like Fantastico. So I need to work out what actions must be performed to replicate the upgrade process.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-12-15 02:28

even if it's an autoinstaller, there should be an upgrade/ directory.

and if there isn't, just use the upgrade directory that is in the 2.0.2 full package. upload it to your gallery2 and upgrade like everyone else.

and if you are actually a developer and not a user (it's not clear to me) and you'd like to automate upgrading for installatron Gallery 2 installations, then my answer would still be: use the G2 upgrader. it's really userfriendly.
why?
because each G2 upgrade can be quite involving. each module can have upgrades and each upgrade can involve G2 API calls. replicating this with an external script is unmaintainable.

maybe we should discuss how to call the upgrader from the command line or how to do a 1 click upgrade using the G2 upgrade API. that would be reasoable.
else, you should just replicate upgrade/steps/UpgradeCoremoduleStep.class and UpgradeOtherModulesStep.class + CleanCacheStep.class .

 
Sumaleth

Joined: 2005-11-04
Posts: 9
Posted: Thu, 2005-12-15 05:27

I am the developer. It does sound like I'd be better off utilizing G2's upgrader system.

If future G2 releases allowed the upgrade process to be run directly, bypassing the user interface, that would be great.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-12-15 05:42

would you please file a feature request at http://sf.net/projects/gallery/ -> RFE

we can then talk about how it could be implemented. what changes would be necessary etc. or maybe just put together a php script that does the necessary calls.

 
Sumaleth

Joined: 2005-11-04
Posts: 9
Posted: Thu, 2005-12-15 07:26

I added it. Thanks for the pointers.