Commit graph

39 commits

Author SHA1 Message Date
Brion Vibber
7c08615a60 Install fixes for group table 2004-10-24 22:20:52 +00:00
Jens Frank
fbb38feb62 forgotten rename 2004-10-24 21:19:54 +00:00
Jens Frank
421829d4e7 Renaming columns:
ug_gid => ug_group
ug_uid => ug_user
ur_uid => ur_user
as proposed by Mr Vibber.
2004-10-24 09:51:13 +00:00
Jens Frank
bbfc760c1f Rename fields of user_rights and user_groups table to tablename_columnname schema 2004-10-24 09:21:53 +00:00
Brion Vibber
dbbf0e913a Add the experimental user_groups, group tables so that installation works 2004-10-02 22:26:00 +00:00
Brion Vibber
332a0cf268 Back out kturner's old table restructure for now.
This will require downtiime on upgrade, so we're not going to do it until we have a better idea of the cost and can make all necessary changes at once to minimize it.
2004-09-26 19:49:44 +00:00
River Tarnell
705c7680fc remove old_namespace and old_title from old table. 2004-09-26 14:43:12 +00:00
River Tarnell
72e66de074 user_token 2004-09-26 11:17:34 +00:00
Brion Vibber
aeaada6033 Remove indexes.sql; index definitions are now in the table creation in
tables.sql where they belong. Changed some UNIQUE to PRIMARY KEY, removed
unneeded cur_namespace index, added UNIQUE index on cur_namespace,
cur_title combination to enforce correctness a bit on new wikis.
2004-09-11 10:46:27 +00:00
Jens Frank
fae0d13929 Split user table into two parts: user and user_rights, for single login. BUG#57 2004-08-24 20:41:07 +00:00
Brion Vibber
41e752879c Special:Log and the logging table -- unified logging scariness!
Replaces the ugly, often breaking, manually archived log pages with
a nice clean table which can be sorted, trimmed, viewed in pieces, etc.
You can see all logged actions by some user, or affecting some page,
and can combine the views of all all logs in one.

There are probably still some broken things in here, but I want this
committed before the patch gets any bigger.

recentchanges table is altered to make rc_namespace signed so Special:
links can be listed in it.
2004-08-24 08:11:46 +00:00
Arne Heizmann
075396a961 New feature: Recent Changes Patrol. All edits and new pages are now highlighted on
Special:Recentchanges and Special:Newpages until someone "marks" them as
"patrolled" using a special link. For new pages, this link appears at the bottom
of the article if the link in Recent Changes or New Pages is followed. For all
other edits, this link appears only in the diff and only if the diff link is
followed from Recent Changes. (Might need to add this functionality to Watchlist
too; haven't done that yet.)
2004-08-09 05:38:11 +00:00
Arne Heizmann
cee22eda75 primary key. 2004-08-07 04:03:15 +00:00
Tim Starling
c9dcdbc007 Added primary key for the recentchanges table. Patch already committed. Not in config/index.php yet. 2004-08-07 03:59:20 +00:00
Magnus Manske
383c33b3bb Article validation, now with comments 2004-07-19 17:21:11 +00:00
Magnus Manske
1a788d69db Article validation code (a start) 2004-07-18 20:45:28 +00:00
Tim Starling
ac549401d4 * Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Arne Heizmann
f7f19d5ec4 SQL syntax error 2004-06-21 20:22:59 +00:00
Tim Starling
2ba5e0e718 * Moved content from liveCmdLine.inc into commandLine.inc, obsoleting the former.
* Put some option handling code in commandLine.inc which is untested and unused (for the moment).
* Converted all existing command line scripts to use the standard header and argument array.
* Did a quick test of compressOld.php, rebuildall.php and rebuildMessages.php to check for breakage.
* rebuildall.php was broken due to the unmaintained rebuildlinks.php, so I converted it to use refreshLinks instead. Required splitting into refreshLinks.inc and refreshLinks.php
2004-06-15 15:18:50 +00:00
Tim Starling
e3d0c474a8 Storing IP in RC. Off by default. Tested:
* Installation
* Edit when switched off
* Edit when switched on
2004-06-14 10:40:24 +00:00
Brion Vibber
7b32da4711 Ensure searchindex table is created as MyISAM 2004-05-19 22:04:44 +00:00
Brion Vibber
ac9621badb Add categorylinks table to separately list category relationships. Actual
_page_ links to category pages like [[:category:Some cat]] will stay in
links/brokenlinks and not be listed in the category page list anymore.

A link can optionally specify a sort key like this: [[category:cat|Sort me]].
The page will then be sorted in category lists according to the given text
instead of the page name; thus categories may be sorted arbitrarily, by
last name or whatever.

There is also a timestamp field included on gwicke's request; this is not
used yet. Also it will currently be updated at every edit of the page,
this can be changed by implementing differential updating for the cat links.

TODO:
* Make sure that automatic sort keys are updated on page rename.
* Make sure cateory pages get cache-invalidated and purged
* Use proper text sorting instead of raw binary sort
* Allow specification of the display style on category pages: comma list
  or bullet list or number list; by sortkey or by timestamp; etc
2004-05-15 00:29:39 +00:00
Brion Vibber
0c2fba0ac4 Add an objectcache table for limited caching when memcached isn't
available. Currently using for the message cache to avoid reading
every message separately. This now is only slightly slower than
memcached in my tests when $wgUseDatabaseMessages is enabled, so
it's a bit of a speedup for common hosts.
2004-05-09 05:12:55 +00:00
Brion Vibber
ee940c906d Replace ugly abuse of log pages to store cached results of query pages
with a table that stores up to 1000 rows for each 'expensive' special
page. This can be paged through, reducing the annoyingness of 50 result
limits on the old system.

Rebuilding the cache can be forced by adding "recache=1" URL parameter,
but this will need to be refined with some sort of controls to prevent
abuse.

Added the user realname update to the installer's updater list, also.
2004-05-09 01:30:34 +00:00
Evan Prodromou
c1d1561b2f Added a user_real_name column to the user table, and added a patch SQL file
to add this field.

User.php stores and fetches the field, and has accessors for it.

User login allows setting the field on account creation.

The Preferences page allows changing the real name.

The labels are available for the real name, and the explanation of the email
field on login has been expanded to include an explanation of the real name
field, too.

Update script checks for the field, and adds it if it's missing.
2004-04-18 02:28:35 +00:00
Brion Vibber
3dd3f51cd9 Remove dangerous DROP statements from table creation. If accidentally
overwriting an existing database this destroys all data without warning...
better to let it fail with an error message and let the rare cases where
this is intended be dealt with manually by dropping them yourself.
2004-03-24 07:52:25 +00:00
Brion Vibber
59c6e92429 Some changes to the link tables. They now all use a key on cur_id for the *_from column instead of strings, and have a unique index to force prevent any duplicate entries. There's not yet a clean step in the update script, so just clear out your links tables (patch-linktables.sql) and rebuild them with refreshLinks.php.
This saves trouble in a number of places where we can now do joins with the link tables to get other info (such as cur_is_redirect!) as well as the name, and fewer bits need to be juggled on page renaming, as outgoing links no longer have to be changed (cur_id remains the same when a page is renamed).

rebuildLinks.inc and some of the tools in the 'maintenance page' still need to be updated to work with the new setup. (Special:Maintenance needs a *lot* of cleanup in general. It's kind of a catch-all of vaguely defined features which suck performance like a hydroelectric dam.)

Also I've slipped in some extra debug code. And, I think 'indexes.sql' is a big waste of time and should all be moved into tables.sql. Building indexes separately doesn't help on InnoDB and won't do anything on MyISAM either if you're just going to replace the table after it's built with an imported one from a dump which creates it with indexes.
2004-03-11 09:06:13 +00:00
Mr. E23
cda4adc30d Made linkscc title column case sensitive 2004-03-10 23:43:54 +00:00
Brion Vibber
aa81f5bf90 Extra comma breaks install 2004-02-21 08:31:30 +00:00
Tim Starling
e2f98922df Two blocking features: IP range blocks, and expiry times configurable block-by-block.
Possible issue: uses strtotime(), which is very handy but in English
2004-02-14 12:37:25 +00:00
Tim Starling
3c96949682 * Recent Changes improvements: object oriented back end, move page annotation and (untested) message queue feed.
* Misc. bugs fixed in DatabaseFunctions.php and Skin.php.
* install-utils, install and update utilise Database objects instead of handling their own connections
* schema change for RC improvement -- added rc_type, rc_moved_to_title and rc_moved_to_ns
2004-01-17 05:49:39 +00:00
Mr. E23
6a41de71d7 Article.php:
* Made updating of page view stats faster my buffering them in a
  HEAP table until many pages can be updated at once.

tables.sql:
* hitcounter table

patch-hitcounter.sql:
* hitcounter table

update.php:
* Creating hitcounter table when necessary
2003-12-13 21:32:32 +00:00
Mr. E23
f45ca8f9aa Further link-cache related stuff. 2003-11-08 15:32:28 +00:00
Tim Starling
a2bc5d8338 MediaWiki namespace 2003-09-21 13:10:10 +00:00
Tim Starling
ff0f56bc8c Autoblocker privacy protection 2003-09-07 13:56:25 +00:00
Brion Vibber
3002e1d8a6 Move interwiki management from big ugly array into the database, with
memcached backing. Second 'wikipedia-interwiki.sql' has Wikipedia's
local interlanguage URLs.
2003-08-21 11:20:38 +00:00
Lee Daniel Crocker
a33f0544fe Removing "random" table. 2003-05-06 22:58:49 +00:00
Lee Daniel Crocker
f3a4fd56c0 Completed several maintenance scripts for index rebuilding. 2003-05-02 22:55:37 +00:00
Lee Daniel Crocker
d82c14fb4f Initial revision 2003-04-14 23:10:40 +00:00