Last modified: 2012-08-04 20:48:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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