errors in 1.8 installation scripts & how to resolve them

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
upuaut
TestLink user
Posts: 6
Joined: Fri Dec 21, 2007 7:34 pm

errors in 1.8 installation scripts & how to resolve them

Post by upuaut »

I attempted to upgrade from 1.7.4 to 1.8 beta, but bumped into errors

I dug in the installation code and found the errors in the installation scripts. I was able to fix the errors and finish the upgrade successfully. I recommend fixing those error mentioned below before you start the upgrade process.

What to do

1- locate the file migration_start.php script, which is under [YOUR_NEW_TESTLINK_DIR]/install/migration/migrate_17. Locate line ~ 266, which reads:

$dirs_to_check=array('../../../gui/templates_c,../../../logs');

change it into

$dirs_to_check=array('../../../gui/templates_c','../../../logs');

note the red single quotes added.

2- locate the file db_schema_update.sql which is under [YOUR_NEW_TESTLINK_DIR]/install/sql/alter_tables/1.8/mysql/DB.1.2 directory.

Now, locate line ~ 104, which reads:

ALTER TABLE `requirements` CHANGE COLUMN `id` int(10) unsigned NOT NULL;

and change it to

ALTER TABLE `requirements` CHANGE COLUMN `id` `id` int(10) unsigned NOT NULL;

Then, locate line ~ 107, which reads

ALTER TABLE `req_specs` CHANGE COLUMN `id` int(10) unsigned NOT NULL;

change it to

ALTER TABLE `req_specs` CHANGE COLUMN `id` `id` int(10) unsigned NOT NULL;


Now run the upgrade process.
hope this helps.
thanks.
Nogem
Advanced user
Posts: 21
Joined: Tue Nov 13, 2007 10:53 pm

Post by Nogem »

Looking in the noted documents currently these same entries remain as upuaut noted incorrect. Have these been officially looked into? Are they going to be changed and are upuaut's changes officially recommended at this point?
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

I will check and do changes if needed
Locked