Commit graph

42 commits

Author SHA1 Message Date
Sam Reed
5f230a3a19 Can someone standardi[sz]e SQL already!?
Might aswell change mysql to same format as the sqlite one is becoming

Ping r113110
2012-03-06 00:26:48 +00:00
Sam Reed
921c862c97 Followup r113109, forward port the rest of r25267 for Bug 10788 - Filter page histories by user, or contributions by title 2012-03-06 00:09:18 +00:00
Sam Reed
790925d3ac Not much point making user_groups.ug_group 32 chars if we leave user_former_groups.ufg_group at 16
Also fix modify field to use correct table/column
2012-02-06 16:07:52 +00:00
Antoine Musso
44b06f908e reverts Concurrency works
trunk is frozen pending stabilisation so we can release MediaWiki 1.19.
Those changes introduces API changes and new SQL tables, so that sounds like
new feature we do not have time to review right now.

Please reapply changes in branches/concurrency and have code review handled
there. Once the branch has been reviewed, please hold. Once trunk is stable
enough and 1.19 got branched, you are welcome to merge the branch in trunk.

Note: we can have a Jenkins jobs setup to run the branch tests if you need.

Reverts:
r108595 r108591 r108585 r108584 108572 r108564 108560 r108559
2012-01-11 09:05:56 +00:00
Ian Baker
afdc8b34d8 Updated to use correct cross-db timestamps and date functions
Added to SQLite updater
2012-01-10 23:42:03 +00:00
Sam Reed
faca3cb2e7 * (bug 27724) Add timestamp to job queue.
Designed for administration purposes, not to be exposed to front end users

Useful for administration purposes (like WMF with job runners), we can look at the "highest" jobs, and find out whether enwiki is just busy, or the jobs have been there a while (signalling that the job runners potentially have issues)
2012-01-03 15:08:05 +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
Sam Reed
c6b3c2f05b * (bug 32470) Increase the length of ug_group
Postgres doesn't need extending...
2011-11-19 16:26:28 +00:00
Jure Kajzer
12dabfbc10 * applyed the patch from bug 26393 (please comment on the bug page) 2011-11-11 14:28:44 +00:00
Alexandre Emsenhuber
330859157b svn:eol-style native 2011-10-04 14:11:16 +00:00
Max Semenik
3a20036ca4 Revert r98355 and r98357; drop the field instead. 2011-10-02 06:10:55 +00:00
Sam Reed
52bb2e5a28 Followup r98339
Don't try and remove the user_options column in SQLite

Added 'user.user_options' to ignores
2011-09-28 19:28:19 +00:00
Max Semenik
2d99f7203f Folow-up r89526: tabs and eol-style :( 2011-06-05 19:46:08 +00:00
Max Semenik
4acbaa1728 SQLite: sync a couple of indexes with MySQL 2011-06-05 19:39:28 +00:00
Matěj Grabovský
c4a741d7f6 Create index only if it doesn't already exist 2011-01-26 10:33:21 +00:00
Chad Horohoe
2635ee9a32 Fix r69721: SQLite yells at you if you try to drop an index that doesn't exist; which might be the case considering how many times these indexes were renamed and dropped. Per r73758, put IF EXISTS on them--it certainly can't hurt. 2010-11-03 12:41:46 +00:00
Max Semenik
68b39fbd23 Revert r74273 per CR: this patch is not needed because our SQL conversion magic handles the MySQL version just fine, and I've tweaked it in r74428 to look nicer 2010-10-07 16:20:20 +00:00
Antoine Musso
575711fde2 Profiling table (optional) for SQLite 2010-10-04 20:55:14 +00:00
Max Semenik
97efc5c6c3 A few index-related fixes in SQLite DB patches, ping r66920.
The need to drop index patch-rename-iwl_prefix.sql arose from development versions that had discrepancies between tables.sql and updater. Let's just DROP IF EXISTS it.
2010-09-25 17:45:00 +00:00
Max Semenik
bb65748dc9 Follow-up r71118: forgot to re-add the index 2010-09-12 18:00:28 +00:00
Max Semenik
219717307e Follow-up r72870: fixed patch file so that it actually works, switched it to native SQLite types 2010-09-12 17:48:56 +00:00
Alexandre Emsenhuber
86eb53c8ca GOOD BYE, dear old updaters.inc!
* Moved update functions to MysqlUpdater and DatabaseUpdater (and archive() to install-utils.inc just in case someone is still using it)
* Moved update_row_exists() to DatabaseUpdater
* Added cl_collation patch for SQLite, was missing and also run collationUpdate.php while updation SQLite
2010-09-12 16:24:03 +00:00
Alexandre Emsenhuber
2b98748b6a Added SQLite version of the patch since the other one has syntax errors on SQLite 2010-09-12 12:28:21 +00:00
Chad Horohoe
dffca4de5d Per wikitech-l discussion: it would be nice if the various DBMSs we support kept all of their docs in one place. So make a place and move two already existing READMEs there. Add some info to /docs/database.txt about this as well. Postgres, Oracle, Mssql need to add some info kthnx :) 2010-09-07 12:37:13 +00:00
Max Semenik
0ce11ce403 Fixed SQLite updater broken by r69542 2010-08-15 14:49:07 +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
Mark A. Hershberger
572bfe1228 * re r69332, r64217: complete removal of WikiSysop for CLI installer
* Incorporate new Installer::performInstallation() function
* Update SQLite schema tables to insert data to updatelog correctly
2010-07-18 18:52:05 +00:00
Max Semenik
ca2371de95 follow-up to r66892: fix update SQL on on SQLite 2010-05-26 14:29:53 +00:00
Max Semenik
9b257aa857 Updated link to docs 2010-01-17 13:35:26 +00:00
Max Semenik
3a15dc11f6 Updated comment in accordance with r58030 2009-12-17 12:53:05 +00:00
Max Semenik
7b7ed1034d Whee, a debugging piece of SQL had made it through in r59932 2009-12-11 23:30:08 +00:00
Max Semenik
5445d274c1 Fixed updater borkage on SQLite from r59925 and r59926, tweaked explanation for this change in updaters.inc for portability. See my comments for these revisions in CodeReview for motivation. 2009-12-10 17:42:12 +00:00
OverlordQ
7f5332a3b7 Addendum to r59925, fix remaining straggling files that set rc_time to int 2009-12-10 10:10:56 +00:00
OverlordQ
ff2d149795 Followup to r59869, add to MySQL section, and copy patch to SQLite directory 2009-12-10 05:39:45 +00:00
Max Semenik
798cfc5ade Merge SQLite search from branches/sqlite/ to trunk 2009-10-29 16:19:35 +00:00
Max Semenik
fa1640fee3 Finished bringing SQLite updater in par with MySQL 2009-10-22 18:04:08 +00:00
Max Semenik
b713592d39 SQLite updater: don't keep the old tables hanging around renamed after creating indexes, we explicitly tell people to backup before upgrading:D 2009-10-22 17:48:09 +00:00
Max Semenik
8cac971d1c Separate patch-rd_interwiki.sql for SQLite 2009-10-22 16:58:13 +00:00
Tim Starling
f058162bc5 * Preserve usertext_timestamp index name for MySQL, prefix it for SQLite. Issues remain on the experimental non-installable DBMSes.
* Clean up some E_STRICT issues
2009-01-15 14:20:28 +00:00
Tim Starling
4124558d7b For backport to 1.14.
* Made the upgrader work with SQLite
* Implemented missing schema info functionality in DatabaseSqlite
* Merged the SQLite and MySQL schemas into the one file with the help of some replaceVars() hacks.
* Moved all primary key definitions to the field definition, moved all indexes to CREATE INDEX statements, for best SQLite compatibility.
* Made all autoincrement fields primary keys, as required by SQLite.
* Removed meaningless buzzword from the category table comment
* tables.sql: s/'0'/0/
* In SQLite the index names have DB scope. Renamed archive.usertext_timestamp, user_newtalk.user_id, user_newtalk.user_ip
* SQLite does not support UPDATE with LIMIT by default. Removed all instances I could find.
* Made query errors work in the installer.
* Fixed DatabaseSqlite::lastErrno(), made SQLITE_SCHEMA errors automatically reissue the query as suggested on sqlite-users. Otherwise upgrade breaks.
* Removed miscellaneous status information from getServerVersion(), that's not the place to put it
2009-01-15 06:56:58 +00:00
Aran Dunkley
892f863094 replace with newly generated version 2008-05-11 06:12:07 +00:00
Aran Dunkley
6fc766cc21 keep schema in maintenance same as postgresql 2008-05-09 12:08:28 +00:00