Commit graph

211 commits

Author SHA1 Message Date
Greg Sabino Mullane
bdc93f0de8 Not sure I like the DROP stuff here, but let's exclude it from this script. 2011-02-14 00:36:36 +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
c4a15c727c Don't put multiple tables in the same file. 2010-12-30 18:53:48 +00:00
Mark A. Hershberger
962be1d210 * Commit changes to PG new-installer I thought I had done last week.
* Set up and use function for renaming tables
* Use $conn instead of $this when it is called for
* remove protection from commitChanges so the installer can use it
2010-12-01 20:15:45 +00:00
Alexandre Emsenhuber
7789116f29 Moved testRunner[|.ora|.postgres].sql to [|oracle/|postgres/]archives/ so that they can be called through DatabaseBase::patchPath(), much simplier 2010-11-09 17:41:00 +00:00
Greg Sabino Mullane
bd4fb0982a cl_sortkey now back down to varbinary(230). Glad PG doesn't have this issue. 2010-10-15 15:39:48 +00:00
Greg Sabino Mullane
8ba8c11f1e Remove parserTests.inc checks, as testing is now done quite differently. 2010-10-05 15:00:19 +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
84a28b19b7 Add the "page" table back in when upgrading from really old MW versions using Postgres 2010-09-13 14:26:38 +00:00
Greg Sabino Mullane
5f38f7af66 Adjustments for new tables. 2010-09-08 02:04:14 +00:00
Greg Sabino Mullane
da86748730 Add new tables. 2010-09-08 02:02:28 +00:00
OverlordQ
b7c0058a7e Followup to r72349, PG table def + updater for module_deps 2010-09-04 04:14:51 +00:00
OverlordQ
d97bb6f129 Followup to r72349, PG tables + updater 2010-09-04 04:10:23 +00:00
OverlordQ
656f399be3 Fix sequence renaming to be backwards-compat with older versions of PG. Needs merged with 1.16 2010-09-03 21:17:33 +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
Greg Sabino Mullane
4c9ba6494e Allow both single and double quotes for ENUM values (even though we should standardize on one or the other) 2010-08-24 17:34:42 +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
468ad6793e Minor adjustments for schema comparison 2010-08-04 11:12:36 +00:00
Greg Sabino Mullane
5c994a71b3 Remove invalid comma 2010-08-04 11:09:56 +00:00
OverlordQ
6807e37e20 Followup to r69961, update PG schema 2010-07-28 05:08:21 +00:00
OverlordQ
f7743f9957 Followup to r69817, r69810 add PG patch file, defaults to cl_type of PAGE. 2010-07-24 21:44:16 +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
8a7e986ce3 Add exception for iwl_prefix 2010-05-28 21:37:38 +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
Greg Sabino Mullane
f8851505b0 Adjust for minor_mimes now being 100 chars long in mysql schema 2010-03-22 14:41:30 +00:00
OverlordQ
fa29d249ea Some reason had each each update in there twice 2009-12-21 16:09:47 +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
Greg Sabino Mullane
9c9b2053f3 Change to newer sequence name 2009-11-27 15:34:54 +00:00
Greg Sabino Mullane
52772081b3 Allow l10n_cache.lc_value to map mediumblob to text 2009-11-15 18:57:48 +00:00
OverlordQ
eb3bad9d80 Followup to r58263: forgot patch file 2009-10-28 18:18:34 +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