Last modified: 2011-10-28 16:53:27 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 T32383, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30383 - update.php failed to add column "rev_sha1" to table "revision".
update.php failed to add column "rev_sha1" to table "revision".
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.20.x
PC other
: High critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-15 13:02 UTC by Pei-Tang Huang
Modified: 2011-10-28 16:53 UTC (History)
4 users (show)

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


Attachments

Description Pei-Tang Huang 2011-08-15 13:02:57 UTC
After upgrade to the head version of MediaWiki,
our server output print following message every time:

> MediaWiki internal error.
> 
> Original exception: exception 'DBQueryError' with message 'A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: http://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
> Query: SELECT rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_user_text,rev_user,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,page_namespace,page_title,page_latest FROM "page","revision" WHERE page_id = '1' AND rev_id = '1606' AND (page_id=rev_page) LIMIT 1 
> Function: Revision::fetchFromConds
> Error: 1 ERROR: column "rev_sha1" does not exist
> LINE 1: ...,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,p...
> ^
> ' in D:\App\mediawiki\includes\db\Database.php:874


I did run the "maintenance\update.php", but got:

> MediaWiki 1.19alpha Updater
> 
> Going to run database updates for my_wiki
> Depending on the size of your database this may take a while!
> Abort with control-c in the next five seconds (skip this countdown with --quick)
>  ... 0
> ...category table already exists.
> 
>     ... ommitted ...
> 
> Populating rev_len column
> ...doing rev_id from 1 to 200
> A database query syntax error has occurred.
> The last attempted database query was:
> "SELECT  rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_user_text,rev
> _user,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1  FROM "revision"
>   WHERE (rev_id >= 1) AND (rev_id <= 200) AND (rev_len IS NULL)  "
> from within function "PopulateRevisionLength::doDBUpdates".
> Database returned error "1: ERROR:  column "rev_sha1" does not exist
> LINE 1: ...,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1  ...



Our environment:
  OS: Windows Server 2008 R2
  Database: PostgreSQL Database Server 8.3
Comment 1 Roan Kattouw 2011-08-15 13:20:36 UTC
This was previously reported in the code review comments section on r94289.
Comment 2 Aaron Schulz 2011-08-15 16:56:23 UTC
Fixed in r94370.
Comment 3 Brion Vibber 2011-08-15 18:26:06 UTC
Note this field has been reverted in r94541; core schema changes need to be discussed ahead of time.
Comment 4 Mark A. Hershberger 2011-10-28 16:52:13 UTC
Just svn up'd and ran update.php and got this :(

Patches for postgres in r101151
Comment 5 Mark A. Hershberger 2011-10-28 16:53:27 UTC
was resolved invalid, but since I was getting similar errors, changing to "fixed"

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


Navigation
Links