Roundcube Community Forum

Release Support => Pending Issues => Topic started by: meverts on September 12, 2013, 07:15:59 PM

Title: installto.sh script does not run intermediate SQL upgrade scripts
Post by: meverts on September 12, 2013, 07:15:59 PM
If this is documented somewhere, please point out where.  I don't see mention of it in the "UPGRADING" text included with the archive or on this page: http://trac.roundcube.net/wiki/Howto_Upgrade.

I started the script like this:
[root@apone roundcubemail-0.9.4]# ./bin/installto.sh /var/www/roundcubemail-0.5.4/

It doesn't get interesting until this part of the upgrade:
--
Executing database schema update.
Updating database schema (2013011000)... [OK]
-
It doesn't run any of the other database scripts (I checked). Since I am upgrading from 5.4 to 9.4, it should also run the following:

2011011200.sql
2011092800.sql
2011111600.sql
2011121400.sql
2012080700.sql

It appears to have only ran "2013011000.sql".

Everything is working great after I executed these SQL scripts manually, but IMO the script should do this for you and at the very least should be documented well.  Thanks again for a great piece of software!

Mickey
Title: Re: installto.sh script does not run intermediate SQL upgrade scripts
Post by: alec on September 13, 2013, 02:34:07 AM
There's version detection in the script. However, releases list wasn't complete, so it couldn't recognize the version you upgraded from. Fixed in git.