Commit graph

154 commits

Author SHA1 Message Date
Brent Garber
4509c1111e Include Postgres tables and maintenance scripts for Change I23c47c2c
Change-Id: I1b2fe2b80700678935bf6d28c3a48538d044d3f4
2013-02-01 20:09:40 +00:00
Reedy
cc18322559 Back out config table and related code
Change-Id: I4fa180d45984a4ec2b2c7b1149015c6dad14c5f0
2012-10-29 15:17:24 +00:00
Tim Landscheidt
a4193673b2 Add additional job columns to PostgreSQL as well.
This ports I49824c7fa855fea4ddcac5c9901ece8c2c0101d0 and fixes
bug #41196.

Change-Id: I18e0ac3aee2c2627f89d28d4a34afd90c822af91
2012-10-24 18:56:54 +00:00
Tim Landscheidt
b5df3f37d1 Add filearchive.fa_sha1 to PostgreSQL as well.
This fixes bug #41114.

Change-Id: I021070f90d35d99ad55944543e94004f62d5f08c
2012-10-20 03:37:53 +00:00
freakolowsky
287bf0db12 Add *_content_(model|format) fields to PostgreSQL
Create ContentHandler field for PostgreSQL
(for installer and the update).

TEXT was chosen as replacement for MySQL VARBINARY(32)

Change-Id: Ia86ae79d37517630e1767dfb976604bbb174104b
2012-10-11 20:53:16 +00:00
Marc A. Pelletier
7694faf68f (bug 5445) remove autoblocks when user is unblocked
Previously, whenever we blocked a user, its IP address would be
autoblocked whenever he tries to edit a page. Thus when later unblocking
the username, he would be automatically blocked again if we forgot to
clean up is IP.

This patch introduces a the ipb_parent_block_id column in ipblocks table
to track which block triggered the autoblock command. Thus, when deleting
the original block we can easily remove all subsequentautoblocks.

Schema updaters for MySQL, SQLite and postgres have been added to the
patch but not for the other database types such as ibm_db2, mssql and
Oracle.

Change-Id: I4aa820ae9bbd962a12d0b48b6c638a1b6ff4efc9
2012-05-03 12:07:30 +02:00
Greg Sabino Mullane
98b9296303 PostgreSQL schema: datatype updates, remove unused column, add table
* More allowed data type conversions from MySQL to PostgreSQL
* Allow for data type SMALLINT: seen for first time!
* Handle CREATE TYPE: check for dupes, and allow the name as a valid data type.
* Remove the now-deprecated user_options column.
* Add new table "config"

Change-Id: I18e67bcb131b88bfaea7e736f302dd79ebfc9b82
2012-04-04 09:15:51 -04:00
OverlordQ
351332641a Followup to r107866, add in new job_timestamp field which was likely completely breaking anything related to the job queue, should fix failing TemplateCategoriesTest.testTemplateCategories on PG 2012-01-12 22:11:12 +00:00
OverlordQ
44ce86ac01 Followup to whatever revision added us_chunk_inx 2012-01-12 17:10:48 +00:00
Chad Horohoe
7914b2ee68 (bug 29475) Remove "trackback" feature entirely from core. This has been disabled-by-default since its inception and nobody uses it.
If someone really really wants this, they can write an extension.

Language files need rebuilding, but I took care of En and messages.inc.
2011-11-23 17:14:03 +00:00
OverlordQ
0074526857 Followup to r100640, use correct name scheme for sequence, correct references to sequence and add optional patch file for sites following trunk 2011-11-16 19:54:38 +00:00
OverlordQ
608d6bba76 Followup to r101021, add back to Pg schema so we can install mediawiki 2011-10-31 20:03:43 +00:00
OverlordQ
8cd73f35ff Update Postgres with missing uploadstash tables 2011-10-24 19:43:16 +00:00
Aaron Schulz
a4d029210a Follow-up r90749:
* Removed useless ufg_group index from user_former_groups
* Index name consistency
2011-06-25 04:11:20 +00:00
Aaron Schulz
cb6b72cef7 Added one-time promote support via Autopromote::autopromoteOnceHook function. This is still a bit rough on the edges. This uses a hook since extension may want to control when it's called for performance reasons. Patch by lampak. (for bug 24948) 2011-06-25 02:52:30 +00:00
Brion Vibber
5f0afcf1a2 Breaking the 'math' table setup out to Math extension. Should be the last main step in extension-ification of the math options!
The 'math' table will no longer be created on a default install unless you've explicitly enabled the Math plugin at install time; the usual update.php procedure will add it in.

Postgres, Oracle, MSSQL, and DB2 variants are included -- broken out from the core files -- but have not been tested.

I know there has been some code duplication in parser test infrastructure but could only find one instance of the parser test temporary table setup to remove the 'math' table from (the extension adds it back via the hook). If the phpunit-based runner breaks, please track it down and fix it there too.
2011-04-22 21:37:16 +00:00
Mark A. Hershberger
13e7d428b1 followup r13884 add CASCADE so that if the tables are created a second
time, errors aren't given.
2011-02-05 22:20:09 +00:00
Mark A. Hershberger
1eb2307caa Results of my work on new-installer and Pg.
* NOTE: this commit removes any semblence of tsearch compatibility with pre-8.3 PostgreSQL
* Make new-installer work against PostgreSQL
* Remove SearchPostgres.php's call to pg_fetch_result.  I think this is the only one outside of the vestigtial old installer code.
2011-02-03 04:06:11 +00:00
Greg Sabino Mullane
a159977153 Use text_pattern_ops for page_title, as some code uses 'anchor%' matching. 2011-01-19 16:14:37 +00:00
Greg Sabino Mullane
cb1c5fd26b Add new index on pagelinkes(pl_title) per suggestion from bug 25111 2010-09-13 15:04:04 +00:00
Greg Sabino Mullane
da86748730 Add new tables. 2010-09-08 02:02:28 +00:00
Greg Sabino Mullane
7eac02fe48 Bump cl_collation from smallint to a text 2010-09-03 21:08:16 +00:00
Greg Sabino Mullane
0426d84d21 Add in new categorylinks columns. 2010-08-31 14:35:56 +00:00
Greg Sabino Mullane
f31556261f CREATE LANGUAGE belongs as part of the installer, not here. 2010-08-24 17:35:03 +00:00
Mark A. Hershberger
79907b4b08 OverloardQ or other PG person, please review
These patches were necessary to get new-installer working on PG for me.  I'm not sure about the ‘create lang' bits — they should maybe be in another step?
2010-08-17 03:07:27 +00:00
Greg Sabino Mullane
f6e216c54e Add new partial index for Postgres 2010-08-04 12:40:42 +00:00
Greg Sabino Mullane
5c994a71b3 Remove invalid comma 2010-08-04 11:09:56 +00:00
Roan Kattouw
61de1b9006 Rename the iwl_prefix_from_title index (again) to iwl_prefix_title_from and change the field order accordingly. Fixed r66892 which inserted iwl_from into the index (which was a good thing) but put it in the wrong place. I went out of my way to make sure the index isn't dropped and recreated needlessly, but since I don't know how to do the drop-index-if-exists thing in the Postgres updater, I left that out. The Postgres updater will now create the new index without dropping any old incarnations if present. I did create the patch files with the DROP INDEX statements to make it easier to add this behavior. Also tweak ApiQueryIWBacklinks to use this index properly. 2010-07-22 08:52:58 +00:00
OverlordQ
4739d6e36e Followup to r69580, did I mention MySQL sucks? 2010-07-20 06:02:09 +00:00
OverlordQ
aac4aa2c6f Followup to r69542, since the new installer doesn't support PG, this is going into updaters.inc 2010-07-20 05:59:51 +00:00
Greg Sabino Mullane
23fc153996 Add ul_value to Postgres schema. 2010-07-08 15:11:57 +00:00
Greg Sabino Mullane
f9e29ab620 Standardize the formatting. 2010-05-28 21:37:15 +00:00
Sam Reed
d5b8c1e12b Attempt at changing postgres as per r66892
OverlordQ or someone, can you review please?
2010-05-25 21:36:56 +00:00
Chad Horohoe
b9648ffd01 Kill last vestiges of mediawiki_version. Nobody actually uses it anymore, it just gets silently updated (and only for Postgres at that) 2010-04-26 13:46:04 +00:00
OverlordQ
f787b8155f Followup to r65104, PG updater/table def 2010-04-16 02:35:37 +00:00
Greg Sabino Mullane
4539958087 Make foreign key constraints DEFERRABLE INITIALLY DEFERRED when using Postgres as the database backend 2010-03-22 18:13:06 +00:00
Aryeh Gregor
b520bfb771 Rename some extauth functions and fields
Per Code Review at
<http://www.mediawiki.org/wiki/Special:Code/MediaWiki/53497#c4633>.  One
of the changes was a database field, and updaters might have to be
written for pgsql and DB2.
2009-12-08 19:32:17 +00:00
OverlordQ
31bc78fc18 Followup to r58262: PG half of sequence changes 2009-10-28 17:08:06 +00:00
OverlordQ
355d563f05 Followup to r57964, forgot to revert column change 2009-10-21 02:50:45 +00:00
OverlordQ
bdb4f74360 Add missing columns to PG schemas
Add exceptions to schema comparison script
Alter SQL comments to appease said script
2009-10-21 02:46:39 +00:00
Greg Sabino Mullane
d34a4a5425 Full support for modified oldimage FK constraint to do ON UPDATE CASCASE as well as ON DELETE CASCADE. Thanks to Robert Fleming for reporting and supplying a patch in bug #19445. 2009-07-20 01:54:36 +00:00
Greg Sabino Mullane
3b545f8a39 For oldimage table, do ON UPDATE CASCADE. Per bug #19445.
Note: still needs adjustments to updaters.inc
2009-07-20 01:42:24 +00:00
Roan Kattouw
7130db80c9 (bug 19726) Missing schema updates break file uploads for Postgres. Patch by OverlordQ 2009-07-15 09:38:07 +00:00
Chad Horohoe
6964e122dd (bug 19428) PG and MySQL followups to r52503. Patch by OverlordQ 2009-07-01 00:55:45 +00:00
Greg Sabino Mullane
21993cbb81 Clean up whitespace, add log_search to Postgres schema. 2009-05-19 20:55:29 +00:00
Brion Vibber
ef4849a201 Follow-up to r49803: use proper type and add an explicit foreign key reference for up_user->user_id as we have for other tables in the postgresql schema 2009-04-28 18:42:26 +00:00
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