VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: carsten888 on January 30, 2015, 08:20:53 AM

Title: error update to 3.0.4
Post by: carsten888 on January 30, 2015, 08:20:53 AM
On install I get this error.
QuoteError: 1060 Duplicate column name 'custom_desc' SQL=ALTER TABLE `fsfdf_virtuemart_customs` CHANGE COLUMN `custom_field_desc` `custom_desc` char(255) COMMENT 'description or unit'

updating from VM 3.0.0 on J3.3.6
Title: Re: error update to 3.0.4
Post by: GJC Web Design on January 30, 2015, 11:11:32 AM
have u tried b4 install the tools-> convert custom fields or install/update tables?
sometimes helps
Title: Re: error update to 3.0.4
Post by: Milbo on February 01, 2015, 16:19:00 PM
Similar problem as the other post with the price table. It seems that you had a stopped update process or so. You have still a custom_field_desc (from vm2), even it should be already renamed to custom_desc. But you have custom_desc already there. It tries to rename it again and fails. Please check both columns, you must see yourself which is the one containing all data. Then delete the one with the (mostly) empty values and execute the table updater in the tools again.
Title: Re: error update to 3.0.4
Post by: carsten888 on February 02, 2015, 07:56:52 AM
Quote from: Milbo on February 01, 2015, 16:19:00 PM
...execute the table updater in the tools again.
which one? "Install or if necessary update tables"?
Title: Re: error update to 3.0.4
Post by: GJC Web Design on February 02, 2015, 11:11:05 AM
Quotewhich one? "Install or if necessary update tables"?
yes
Title: Re: error update to 3.0.4
Post by: carsten888 on February 02, 2015, 11:23:23 AM
when I do that I get this error:
QuoteError: 1060 Duplicate column name 'customfield_value' SQL=ALTER TABLE `fsfdf_virtuemart_product_customfields` CHANGE COLUMN `custom_value`  `customfield_value` varchar(2500) COMMENT 'field value'
Title: Re: error update to 3.0.4
Post by: GJC Web Design on February 02, 2015, 11:31:18 AM
well then this advice obviously applies again!!!

QuotePlease check both columns, you must see yourself which is the one containing all data. Then delete the one with the (mostly) empty values

your update originally stopped somewhere and left some table fields there that shouldn't be there ..
Title: Re: error update to 3.0.4
Post by: carsten888 on February 02, 2015, 11:42:10 AM
after another 5 of those it gave me the
QuoteDatabase updated

Maybe the update script should check first if the column does not exist already. And maybe run this script when installing/updating.
Title: Re: error update to 3.0.4
Post by: GJC Web Design on February 02, 2015, 11:54:25 AM
normally it runs fine - have done dozens of various migrations, upgrades etc etc

yours stopped some how in the middle.. timeout/lack of resource etc - but normally shouldn't