Feng Forum

Support => Older versions => : Nuno Zimas November 29, 2009, 03:05:23 PM

: [upgarde 1.5.3 to 1.6rc] query errors / cannot upgrade
: Nuno Zimas November 29, 2009, 03:05:23 PM
First attempt:

Failed to execute DB schema transformations. MySQL said: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varchar(255) collate utf8_unicode_ci NOT NULL default '',

Second attempt:

Failed to execute DB schema transformations. MySQL said: Duplicate column name 'archived_on'
# Error upgrading to version 1.6-rc
: Re: [upgarde 1.5.3 to 1.6rc] query errors / cannot upgrade
: ignacio December 01, 2009, 01:48:36 PM
Hi Nuno,

Yes, there seems to be a bug when upgrading from version 1.5.3. You have to change file 'opengoo_1.6/public/upgrade/templates/db_migration/1_6_chivito.php' line 139 from:
:
CHANGE COLUMN `uid` varchar(255) <?php echo $default_collation ?> NOT NULL default '',
to:
:
MODIFY COLUMN `uid` varchar(255) <?php echo $default_collation ?> NOT NULL default '',
If you have rolled back to version 1.5.3 after the error just do that change and try again. If you are stuck with the broken installation just delete everything from that file (1_6_chivito) upto line 130 (the line before ALTER TABLE `<?php echo $table_prefix ?>mail_contents`) and try again.
: Re: [upgarde 1.5.3 to 1.6rc] query errors / cannot upgrade
: mathieulongtin December 02, 2009, 04:29:29 PM
You probably meant this:

:
CHANGE COLUMN `uid` `uid` varchar(255) <?php echo $default_collation ?> NOT NULL default '',

The column name needs to be repeated.
: Re: [upgarde 1.5.3 to 1.6rc] query errors / cannot upgrade
: ignacio December 02, 2009, 04:51:09 PM
No, note that I changed the word "CHANGE" for "MODIFY". With "MODIFY" the name goes only once.