Last modified: 2014-07-07 14:15:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48492, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46492 - Sqlite updater does not add indexes properly: "table user_tmp has 15 columns but 14 values were supplied"
Sqlite updater does not add indexes properly: "table user_tmp has 15 columns ...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.21.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: sqlite
  Show dependency treegraph
 
Reported: 2013-03-23 19:40 UTC by Bawolff (Brian Wolff)
Modified: 2014-07-07 14:15 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bawolff (Brian Wolff) 2013-03-23 19:40:48 UTC
This came up on irc. u42p was attempting to convert his db from mysql -> sqlite, but the conversion script didn't convert the indexes is right. Running update.php got a lot of errors like:

A database query syntax error has occurred.
The last attempted database query was:
"INSERT OR IGNORE INTO user_tmp SELECT * FROM user
"
from within function "DatabaseBase::sourceFile( /srv/http/w/maintenance/sqlite/archives/initial-indexes.sql )".
Database returned error "1: table user_tmp has 15 columns but 14 values were supplied"


---------------

Expected behaviour: If you run the updater on an up-to date sqlite schema but with indexes missing, the updater should add the indexes

Actual behaviour. Due to initial-indexes.sql copying over tables, but still expecting columns like user_options which have been dropped, sql errors occur.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links