View Issue Details

IDProjectCategoryView StatusLast Update
0005456mantisbtupgradepublic2005-04-25 07:51
Reportergabbs Assigned Tothraxisp  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.0a1 
Fixed in Version1.0.0a2 
Summary0005456: PRIMARY KEY not null error on upgrade
Description

When you run an upgrade to 1.0.0a1 the upgrade script fails on "Add mantis_config_table primary key" (configdb-pk). Saying

"ERROR: All parts of a PRIMARY KEY must be NOT NULL; If you need NULL in a key, use UNIQUE instead"

because config_id, project_id, user_id in the config table all allow NULLS.

TagsNo tags attached.

Activities

thraxisp

thraxisp

2005-04-19 08:54

reporter   ~0009839

project_id and user_id are not set with NOT NULL, but have defaults.

thraxisp

thraxisp

2005-04-19 09:51

reporter   ~0009840

Fixed in CVS

admin/upgrades/1_00_inc.php -> 1.1
admin/upgrades/0_19_inc.php -> 1.12
admin/upgrade.php -> 1.7