User "MaxSem" posted a comment on MediaWiki.r98345. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/98345#c23360 Commit summary:
Fix schema creation Creating sourcetracking table...A database query syntax error has occurred. The last attempted database query was: "CREATE TABLE IF NOT EXISTS `mw_sourcetracking` ( `trackingid` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `userid` int(10) NOT NULL, `source_action` varbinary(255) DEFAULT NULL, `source_ns` int(11) NOT NULL, `source_article` int(10) NOT NULL, PRIMARY KEY (`trackingid`) )ENGINE=InnoDB, DEFAULT CHARSET=binary " from within function "DatabaseBase::sourceFile( /home/reedy/mediawiki/trunk/extensions/SignupAPI/sourcetracking.sql )". Database returned error "1068: Multiple primary key defined" Comment: Eh, can this table be brought up to our standards before it's too late? E.g. <tt>st_id</tt> instead of <tt>trackingid</tt> and so on. Also, you left a comma at the end. SQL != PHP :) _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
