database error in Upgrade to forma 1.2

Install and configure FormaLMS and DoceboCE
Post Reply
sachintholia
FormaLms User
Posts: 35
Joined: Fri May 31, 2013 10:29 am

database error in Upgrade to forma 1.2

Post by sachintholia »

On upgrade i got following error , please help ,

Upgrade database error
Upgrading to version: 1.2
Result: ERROR !!!

Upgrade db with file: /public_html/mysite/upgrade/data/upg_data/10200_db.sqlCannot add or update a child row: a foreign key constraint fails (`saurabhj_ifsdocebo`.`core_lang_translation`, CONSTRAINT `core_lang_translation_ibfk_1` FOREIGN KEY (`lang_code`) REFERENCES `core_lang_language` (`lang_code`) ON DELETE CASCADE ON UPDATE CASC)
------
User avatar
canelli
FormaLms Guru
Posts: 496
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: database error in Upgrade to forma 1.2

Post by canelli »

Hi sachintholia,
The db error you received in the upgrade procedure is raised beacause the DB upgrade procedure try to insert new key and language trnaslation for "english" and you, probably, does not load it .

To avoid the error you can follow one of these steps
a) Load english language translation in your database before run the upgrade
b) or, modify the DB update script commenting out the INSERT statement of "english translation" .

Here attached you can find the sql script with INSERT commented out . replace the content of your upgrade folder
Attachments
upgrade_nolangupd.zip
(2.2 KiB) Downloaded 224 times
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology

http://www.joint-tech.com
---------------
Post Reply