Commit graph

95 commits

Author SHA1 Message Date
Tim Starling
fb97cc3078 langlinks table 2006-04-11 14:56:04 +00:00
Domas Mituzas
88932b0758 put TYPE back in, now as it's back in 5.1 ;-) 2006-04-08 21:11:13 +00:00
Tim Starling
98af136ad5 Added ss_images to site_stats, to replace the slow count(*) query in Parser.php. 2006-03-28 05:09:33 +00:00
Domas Mituzas
0b25a247a1 replace TYPE= with ENGINE=, (supported since 4.0, TYPE deprecated since 4.1) 2006-03-12 14:35:03 +00:00
Tim Starling
eeb84cce20 Added job table, for deferred processing of jobs. The immediate application is to complete the link table refresh operation when templates are changed. 2006-02-24 01:56:31 +00:00
Tim Starling
a55c55a10a explicit TYPE=InnoDB 2006-02-11 06:23:32 +00:00
Tim Starling
8da9fca6c0 Fixes and improvements to interwiki transclusion:
* allow interwiki {{subst:...}} using action=raw fetches
* Allowed non-MSIE browsers to access action=raw via the article alias. This is necessary to allow action=raw transclusion, since the only known URL is the article path, not the script path.
* Specify a user agent in wfGetHttp() fetches, when using curl.
* Added transcache table to tables.sql, it was in the updater but not there for some reason.
* Fixed transcache expiry, added option
* Allow interwiki transclusion outside the template namespace using leading colon syntax. Syntax is counterintuitive at times, e.g. to subst the wikipedia main page you would use {{subst::Wikipedia:Main_Page}} not {{subst:Wikipedia::Main_Page}}.
2006-01-31 03:44:08 +00:00
Tim Starling
eb53cc0856 * Added externallinks table, to track links to arbitrary URLs
* Convert unnecessary URL escape codes in external links to their equivalent
  character before doing anything with them. This prevents certain kinds of
  spam filter evasion. (Parser.php only)
2006-01-26 13:29:14 +00:00
Tim Starling
81217f55a0 * Added templatelinks table. The table currently represents a literal list of templates included from each article. That is, the table contains pages which were actually loaded during parsing, not the markup which went into resolving their names.
* Ended the role of $wgLinkCache in link updates. Instead, links (and related entities) are registered in the ParserOutput object during a parse. The LinksUpdate constructor now takes a ParserOutput object as a parameter. $wgLinkCache is still used, but only as a cache of article IDs.
* Because the link list is now saved and restored in the parser cache, meta tag keywords now work on parser cache hits. Some refactoring took place in this area.
* Rendering of the HTML for category links has moved from Parser to OutputPage.
* Did some general pottering around in Article.php, such as allowing an Article object to be created with a specified revision ID, thereby optionally removing the dependence on $wgRequest. Not used at the current time.
* A few documentation tweaks.
2005-12-30 09:33:11 +00:00
Erik Moeller
31ac630d76 minor doc 2005-12-22 06:22:36 +00:00
Brion Vibber
a35fcb0bed * (bug 1735) Revamped protection interface
* (bug 675) Add page protection level for unregistered/new accounts
* User::isNewbie now uses the registration date and $wgAutoconfirmAge
* Log views show message when no matches
2005-12-22 05:41:06 +00:00
Tom Gilder
95718c7618 fix SQL comma error 2005-12-01 23:23:42 +00:00
Tim Starling
55671d7040 Faster IP blocks. Requires schema change. 2005-12-01 10:37:47 +00:00
Domas Mituzas
b898d890d9 add timestamp key on logging table, in order to avoid stupid filesorting 2005-11-12 20:25:33 +00:00
Ævar Arnfjörð Bjarmason
fced95bfc1 * Improved numerous comments
* Dropped the MIME indexes
* Formatting
* Removed unused groups table definition
2005-10-14 06:27:43 +00:00
Ævar Arnfjörð Bjarmason
4c5243e83a * Added documentation to text.old_id 2005-10-14 04:37:59 +00:00
Ævar Arnfjörð Bjarmason
e8608b2465 * Changed the schema, put an index on img_major_mime and img_minor_mime 2005-09-13 16:33:50 +00:00
Brion Vibber
59db0ac6d1 Use null in wl_notificationtimestamp! The database provides this for a reason.
Can now add items to one's watchlist on MySQL again.
2005-08-17 08:43:48 +00:00
Mr. E23
b1f790da0d Fixed unquoted negative numerals, which breaks on some mysql versions 2005-08-13 13:37:46 +00:00
River Tarnell
7b810c22ef let sysop delete trackbacks 2005-07-23 06:30:26 +00:00
River Tarnell
bc36d810e7 (bug 796) trackback support 2005-07-23 05:47:25 +00:00
Ævar Arnfjörð Bjarmason
b6c967e39d * Removing backticks in the validate table definition 2005-07-07 14:56:53 +00:00
Brion Vibber
aa9bccd696 Somebody forgot to update the interwiki table definition... 2005-07-05 03:08:29 +00:00
Tim Starling
1f3284da90 recovering previous behaviour when enotif is switched off 2005-06-25 13:47:18 +00:00
Brion Vibber
ccb91b5a61 Create new old_text and ar_text fields as mediumblob instead of mediumtext.
These fields may contain compressed binary data.
2005-06-25 09:00:49 +00:00
Magnus Manske
5235a6ee42 validation table fix 2005-06-20 20:41:11 +00:00
Tim Starling
eabc6fe9ff fixed references to cur table in comments 2005-06-19 01:06:21 +00:00
Tim Starling
904042c07c ported site_stats change from 1.4 2005-06-19 00:21:49 +00:00
Brion Vibber
2aa6775224 * (bug 650) Use a shorter cl_sortkey field to avoid breaking on MySQL 4.1
when the default charset is set to utf8
2005-06-12 13:52:38 +00:00
Brion Vibber
a6d47f47ff Rework the user_groups system, again, into something that seems to actually
more or less work for now.

* user_groups ur_group is now a short string key ('sysop' etc)
* groups table is gone
* user_rights table is gone
* Permissions for groups are for now set in $wgGroupPermissions.
An in-database management system could be re-added in the future
if it's really needed, but for now it's mostly just been screwing
things up.
* Group.php and Special:Groups are deprecated; will probably die.
* User group memberships are set explicitly through addGroup and
removeGroup methods instead of being re-saved on every change to
the user record.

Group keys are migrated from user_rights at upgrade time for older wikis.
The fields in prior 1.5alpha tables were too screwed up and will need to
manually have sysops re-assigned.

The Makesysop extension will need some minor tweaks.
2005-06-09 09:49:10 +00:00
Brion Vibber
b76be11a85 * (bug 2223) Add unique index on user_name field to prevent duplicate accounts 2005-06-05 11:19:52 +00:00
Brion Vibber
cb45389b9c * Remove linkscc table code, no longer used. 2005-05-31 07:21:31 +00:00
Brion Vibber
e1292a9ee2 Don't create links & brokenlinks on new installations; skip links table
update if pagelinks already exists.
2005-05-30 09:34:01 +00:00
Brion Vibber
e0ce5a322e * links and brokenlinks tables merged to pagelinks; this will reduce pain
dealing with moves and deletes of widely-linked pages.

The updaters should be fixed up to understand future versions without the
tables there without breaking upgrades.
2005-05-26 10:23:36 +00:00
Ævar Arnfjörð Bjarmason
27105c2129 * (bug 898) Mime type autodetection. 2005-05-21 07:46:17 +00:00
Tim Starling
63190801a8 Renamed group table to groups, and renamed the fields from group_xxx to gr_xxx. Added static group support to Special:Listusers. 2005-05-15 06:18:48 +00:00
Ævar Arnfjörð Bjarmason
c03eed626f * Grammar in comments and a mention of isCountable() in includes/Article.php
in the comment for ss_good_articles.
2005-05-03 07:30:20 +00:00
Brion Vibber
480419b3a9 * (bug 719) Increase namespace fields from tinyint to regular int
This keeps custom namespaces from bumping the 8-bit ceiling so quickly.
2005-05-02 10:15:02 +00:00
Brion Vibber
fa8603c521 Use InnoDB by default for table creations if available. 2005-05-02 08:40:17 +00:00
Brion Vibber
12c16ff676 Don't create unused blobs table. 2005-05-02 08:23:36 +00:00
Brion Vibber
5fdbef206f Move schema documentation to inline comments in tables.sql,
where it's less likely to be left years out of date.
2005-05-02 08:07:38 +00:00
Brion Vibber
c1ac86e560 * (bug 2018) Fix deletion for new schema, make work on MySQL 3 again
The archive table now has an ar_text_id field which points at the
text record containing the deleted revision's text. Older archive
records containing self-contained text are still supported and
will be restored by adding a new revision.

For now, revision and page records are still removed on deletion,
but text records are left intact. This will keep block compression
and immutable alternate storage backends working relatively cleanly.
A rev_deleted flag field is reserved in revision for further future
changes but that won't happen in the 1.5 timeframe.

There is no longer a delete-on-join which was present in earlier
1.5 revisions, so deletion should work on MySQL 3.x again.
2005-05-01 08:07:25 +00:00
Jens Frank
77c833c4e6 Add user_email_* columns to tables.sql, so that the installer works for fresh installations 2005-04-26 19:57:55 +00:00
Ævar Arnfjörð Bjarmason
ee117b601d * Adding img_metadata to image 2005-04-21 22:10:08 +00:00
Tim Starling
efba9e3476 Moved image metadata to the database. Changed Image object to have lightweight constructors, similar to the User object. 2005-04-10 18:29:30 +00:00
Brion Vibber
22c813ad97 * Add wfElement() for handy generation of properly-escaped XML/HTML elements with attributes.
* Begin infrastructure for deleted-revision tag; add rev_deleted field, some
display support for it in history and contribs. Not yet used for deletions.
Run update.php or source maintenance/archives/patch-rev_deleted.sql
2005-03-31 11:40:05 +00:00
Brion Vibber
0b86f637f2 Decouple revision.rev_id from text.old_id
* This will allow the backend text storage to use different id numbers
* Revisions noting metadata changes can be added to history without duplicating text
  (implemented for page move)

This changes the revision table schema and requires running update.php
or maintenance/archives/patch-rev_text_id.sql on existing test wikis.
PostgreSQL table defs are still not in sync, so not updated.
2005-03-28 10:47:12 +00:00
Magnus Manske
08607314e3 correct validate-table code 2005-03-19 13:42:36 +00:00
Brion Vibber
9e6e293334 Add page_len field with byte length of current revision text, since
revision text is now stored separately and may be compressed.
This field is indexed which speeds up Special:Shortpages & Longpages.

Removed no longer used wfArticleIsStub().
2005-03-12 11:51:02 +00:00
Brion Vibber
1c0dcc995d * Make undeletion (more or less) work with new schema
* Add ar_rev_id field to archive to preserve revision IDs across deletion+undeletion
2005-03-12 08:06:46 +00:00