[solved]Mismatched versions of FEU module & FEU db table - how to force upgrade?
Posted: Wed Jan 02, 2008 4:49 am
With some variations of upgrading CMS, installing modules and restoring databases, I got into a place where trying to add user properties for a new group was getting an error to the effect of
"column count doesn't match value count" in row [blah, blah...]
Sure enough, it was trying to do an INSERT with 5 values, and when I looked in the table "module_feusers_grouppropmap", it only had 4 columns. Some more quick looking showed that in the FEU method.upgrade.php, the upgrade to v1.3 had a call to add a 5th column to that table. So, my database was using a pre-1.3 table, while the rest of FEU thought it had been upgraded -- hence the error I was seeing.
What I couldn't figure out was: Is there any way through the CMS admin interface to force FEU to go through the upgrade process again? There was nothing on the Modules or ModuleManager pages.
I finally just used phpMyAdmin to manually add the 5th column, and all seems to be working okay. However, I'm worried that the call to AddcolumnSQL done by the upgrade module might also have updated some other DataDictionary table somewhere??
Lew
"column count doesn't match value count" in row [blah, blah...]
Sure enough, it was trying to do an INSERT with 5 values, and when I looked in the table "module_feusers_grouppropmap", it only had 4 columns. Some more quick looking showed that in the FEU method.upgrade.php, the upgrade to v1.3 had a call to add a 5th column to that table. So, my database was using a pre-1.3 table, while the rest of FEU thought it had been upgraded -- hence the error I was seeing.
What I couldn't figure out was: Is there any way through the CMS admin interface to force FEU to go through the upgrade process again? There was nothing on the Modules or ModuleManager pages.
I finally just used phpMyAdmin to manually add the 5th column, and all seems to be working okay. However, I'm worried that the call to AddcolumnSQL done by the upgrade module might also have updated some other DataDictionary table somewhere??
Lew