Page MenuHomePhabricator

Upgrading SMW 1.8.0 to 1.8.0.2. SMW_setup.php throws an error.
Closed, ResolvedPublic

Description

Author: mitchell_neill

Description:
Hi.

I've just upgraded a SMW 1.8.0 instance to 1.8.0.2.

When I run SMW_setup.php I get the following errors:

Selected storage "SMWSQLStore3" for update!

Setting up standard database configuration for SMW ...

Selected storage engine is "SMWSQLStore" (or an extension thereof)

Checking table smw_object_ids ...

Table already exists, checking structure ...
... changing type of field smw_id from 'INT(8) UNSIGNED NOT NULL KEY

AUTO_INCREMENT' to 'INT(8) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT'
... A database error has occurred. Did you forget to run
maintenance/update.php after upgrading? See:
https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: ALTER TABLE smw_object_ids CHANGE smw_id smw_id INT(8)
UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT FIRST
Function: SMWSQLHelpers::updateMySqlField
Error: 1068 Multiple primary key defined (localhost)

I have run update.php. That throws the same error. This has happened on
two instances now.


Version: master
Severity: major

Details

Reference
bz45151

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:38 AM
bzimport set Reference to bz45151.
bzimport added a subscriber: Unknown Object (MLST).

mitchell_neill wrote:

Fixed with 1.8.0.3.