Last modified: 2012-08-04 20:48:41 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 T15136, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13136 - Update does not work on PostgreSQL
Update does not work on PostgreSQL
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.12.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2008-02-24 17:55 UTC by Sven Klemm
Modified: 2012-08-04 20:48 UTC (History)
1 user (show)

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


Attachments
Fix for the described Problem (895 bytes, patch)
2008-02-24 17:55 UTC, Sven Klemm
Details

Description Sven Klemm 2008-02-24 17:55:55 UTC
Created attachment 4671 [details]
Fix for the described Problem

I get the following error when trying to upgrade with PostgreSQL:
Changing column type of "ipblocks.ipb_deleted" from "text" to "smallint"

Warning: pg_query(): Query failed: ERROR:  column "ipb_deleted" cannot be cast to type "pg_catalog.int2" in /var/www/pentabarf.org/mediawiki/includes/DatabasePostgres.php on line 553
A database error has occurred
Query: ALTER TABLE ipblocks ALTER ipb_deleted TYPE smallint;
COMMIT;

Function: 
Error: 1 ERROR:  column "ipb_deleted" cannot be cast to type "pg_catalog.int2"

Backtrace:
#0 /var/www/pentabarf.org/mediawiki/includes/Database.php(799): DatabasePostgres->reportQueryError('ERROR:  column ...', 1, 'ALTER TABLE ipb...', '', false)
#1 /var/www/pentabarf.org/mediawiki/maintenance/updaters.inc(1501): Database->query('ALTER TABLE ipb...')
#2 /var/www/pentabarf.org/mediawiki/maintenance/updaters.inc(946): do_postgres_updates()
#3 /var/www/pentabarf.org/mediawiki/maintenance/update.php(59): do_all_updates(false, true)
#4 {main}
Comment 1 Greg Sabino Mullane 2008-03-14 04:22:24 UTC
Applied in r31956, thanks for the patch!

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


Navigation
Links