Commit graph

108 commits

Author SHA1 Message Date
Alexandre Emsenhuber
dba3ca83e4 Follow-up r49790: update the PostgreSQL schema 2009-04-24 08:49:29 +00:00
Brion Vibber
7d3e76c415 Revert r48212 "Add user_hidden field to complement ipb_deleted and gu_hidden"
Unauthorized schema change, also appears to be unused.
2009-03-20 01:15:41 +00:00
Greg Sabino Mullane
556142b6b2 Make oldimage nullabilities match image ones, per not on bug 15815 2009-03-12 14:46:27 +00:00
Greg Sabino Mullane
2a6c9a1dfc Add user_hidden column to mwuser table for Postgres schema. 2009-03-12 14:35:40 +00:00
Greg Sabino Mullane
43e92922f7 Whitespace consistency. 2009-02-27 16:49:32 +00:00
Alexandre Emsenhuber
81d04dba17 Update Postgres schema per r46460 2009-02-05 20:55:07 +00:00
Greg Sabino Mullane
61615d0df8 Add column ipblocks.ipb_allow_usertalk 2008-10-11 12:08:10 +00:00
Greg Sabino Mullane
cbef9787ec Add index on templatelinks.tl_from 2008-10-11 11:45:26 +00:00
Tim Starling
20cfed18d9 Fixed bug 15148, total breakage of Special:BlockIP on PostgreSQL:
* Migrated to a unique index for IP block conflict detection, like we did for MySQL some aeons ago.
* Modified DatabasePostgres to return a correct affected row count for INSERT IGNORE. Tested for single and multi.
* Fixed an unrelated bug: duplicate index rc_timestamp in tables.sql
* Tested for install and upgrade on PG 8.3.

No changelog because I'll backport it to 1.13.
2008-09-06 07:05:14 +00:00
Aaron Schulz
332c496506 * Maintain active user count for Special:Statistics (bug 13585)
* Add a global to add update functions to updateSpecialPages.php
2008-08-31 19:29:37 +00:00
Greg Sabino Mullane
f8ef51fc11 Add separate index for watchlist(wl_user) [Postgres] 2008-07-31 16:18:59 +00:00
Greg Sabino Mullane
ee57423144 Add partial index for common recentchanges query. 2008-07-24 22:28:29 +00:00
Brion Vibber
a7af6c3b72 Hold back $wgTrackLinkChanges for a little bit; reverting r37322, 37430, 37432, 37435.
Even disabled, it's started interfering with regular tasks like running the parser tests.
2008-07-10 22:11:11 +00:00
Greg Sabino Mullane
ebc9ee5152 Add recentlinkchanges table for Postgres 2008-07-09 19:25:47 +00:00
Greg Sabino Mullane
6ff3f59429 Add pf_memory to profiling table for Postgres 2008-04-30 14:20:36 +00:00
Greg Sabino Mullane
e73e14cf4e Add user_last_timestamp column to user_newtalk table 2008-04-18 15:21:24 +00:00
Greg Sabino Mullane
7c256b8c7a Add ar_parent_id column. 2008-04-12 00:29:43 +00:00
Greg Sabino Mullane
e9e23d0387 Wrong index, should be unique. Thanks Simmetrical. 2008-03-19 14:27:00 +00:00
Greg Sabino Mullane
fd23af9a2f Add 'category' table to Postgres schema. 2008-03-19 13:02:49 +00:00
Greg Sabino Mullane
3898b3b16a Add updatelog table. 2008-03-18 01:39:36 +00:00
Greg Sabino Mullane
31028e7ce8 Make sequence names explicit for future porting ease. 2008-03-02 16:42:24 +00:00
Greg Sabino Mullane
af503fefa7 Add table page_props to Postgres schema. 2008-02-21 20:04:00 +00:00
Greg Sabino Mullane
a04e6adc06 Have update.php change the functions to their new builtin tsearch2 versions if Postgres >= 8.3 2008-02-19 01:06:06 +00:00
Greg Sabino Mullane
3e2315637c Add ipb_by_text to Postgres schema. 2008-02-19 00:58:52 +00:00
Greg Sabino Mullane
33272a8204 Fixes for 8.3 compatibility, addresses bug 12784. 2008-02-10 16:50:38 +00:00
Greg Sabino Mullane
ffffd9f661 Override replaceVars, other changes to support 8.3 install. 2008-02-10 15:38:48 +00:00
Aaron Schulz
ab1edeb9a8 Normalize _deleted stuff 2008-01-28 01:35:31 +00:00
Aaron Schulz
6293e4a1dd * Make rev_deleted an integer
* Add rev_deleted to updaters.inc
2008-01-27 19:20:48 +00:00
Greg Sabino Mullane
ad76180546 Yet more cleanup of the protected_titles stuff. 2007-12-16 23:35:14 +00:00
Greg Sabino Mullane
12cffaa3b5 Add protected_titles table. 2007-12-16 15:32:34 +00:00
Greg Sabino Mullane
c876d841c2 Make filarchive width/height columns ints for Postgres (not smallint) 2007-10-12 00:40:58 +00:00
Greg Sabino Mullane
1dfb44b51d Major cleanup of schema, based on new compare_schemas.pl functionality. 2007-09-24 20:10:00 +00:00
Greg Sabino Mullane
0ab8c7e910 Make CONCAT calls database portable, change IF() to standard CASE-WHEN calls.
Postgres: replace CHAR(64) with TEXT for fa_storage_key of filearchive
Postgres: Add hasConstraint to allow replacing of oldimage fk constraint
Postgres: make oldimage cascade delete on image deletion
2007-09-23 22:23:01 +00:00
Greg Sabino Mullane
6f617c7ad4 (Bug 11363). Change image and filearchive to bytea from text, to match oldimage. 2007-09-23 20:47:17 +00:00
Greg Sabino Mullane
b3ab7a1b3e Since slashes in page titles have special meaning, force them to delimit words. 2007-09-06 16:32:00 +00:00
Domas Mituzas
74e1bf30a5 destroy rc_patrolling index, no removers added, I hope not that many people did run update with that revision :) 2007-09-05 08:14:18 +00:00
Brion Vibber
5a9878f32d Fixups for page id field in the archive table:
* Make the field nullable for consistency with ar_rev_id and ar_text_id and between MySQL and PostgreSQL and generally so you can cleanly tell between bogus fields and ones that predate use of the field
* Remove duplicate incorrect adding of the field for postgres
* Rename to ar_page_id for consistency with ar_rev_id and ar_text_id
* Rename the patch file for naming consistency

Note that there's no documentation of this schema change in the release notes either, which bugs me a bit.
2007-08-11 14:43:47 +00:00
Greg Sabino Mullane
fe2c0f1ba0 Add rc_patrolling index to Postgres schema 2007-08-09 14:58:02 +00:00
Greg Sabino Mullane
114c92d5cb Various updates to Postgres schema and updater. 2007-07-27 12:23:58 +00:00
Greg Sabino Mullane
9e37652fff Add ar_page column 2007-07-27 11:52:38 +00:00
Yuri Astrakhan
ca7ea84a74 Forgot to update table sql per bug 10280 2007-06-22 15:19:55 +00:00
Greg Sabino Mullane
e30bde5ef4 Add ipb_block_email column 2007-06-16 18:25:14 +00:00
Aaron Schulz
af572f50e3 *Restore oldimage schema changes removed temporarily in r21957 (with some index modifications) 2007-05-31 15:26:15 +00:00
Brion Vibber
9834345068 Revert schema changes in r21954, 21955, 21956 for the moment 2007-05-07 16:24:12 +00:00
Greg Sabino Mullane
39aa3d526d Add new columns to oldimage table. 2007-05-07 15:22:20 +00:00
Greg Sabino Mullane
bca55fa58f Account for pre-existing test table, commit only if setup completes. 2007-03-26 00:12:26 +00:00
Greg Sabino Mullane
af8440f164 Another pesky comma where it shouldn't be. 2007-03-26 00:02:16 +00:00
Greg Sabino Mullane
c18c846e6a Errant comma restored. 2007-03-25 23:51:30 +00:00
Greg Sabino Mullane
eecb949a61 Postgres: Change math_inputhash and math_outputhash to bytea for bug #8716 2007-03-17 20:00:09 +00:00
Greg Sabino Mullane
b0421f3e83 Minor cleanups 2007-03-17 19:12:05 +00:00