Rework the user_groups system, again, into something that seems to actually
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 9 Jun 2005 09:49:10 +0000 (09:49 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 9 Jun 2005 09:49:10 +0000 (09:49 +0000)
commita6d47f47ffb57840625997063ce01a93d204cdc2
tree6cce9e875961eed25a39ad6006a148db38418804
parent7c1ceaeab8210b6d585df789adc576f6fe0d7ed4
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.
14 files changed:
RELEASE-NOTES
config/index.php
includes/DefaultSettings.php
includes/HTMLForm.php
includes/SpecialListusers.php
includes/SpecialPage.php
includes/SpecialStatistics.php
includes/SpecialUserrights.php
includes/Title.php
includes/User.php
maintenance/archives/patch-user_groups.sql [new file with mode: 0644]
maintenance/parserTests.php
maintenance/tables.sql
maintenance/updaters.inc