blob: a32ef4571914049896f4fdf9f4099d3067d6c5d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
-- Split user table into two parts:
-- user
-- user_rights
-- The later contains only the permissions of the user. This way,
-- you can store the accounts for several wikis in one central
-- database but keep user rights local to the wiki.
CREATE TABLE /*$wgDBprefix*/user_rights (
-- Key to user_id
ur_user int(5) unsigned NOT NULL,
-- Comma-separated list of permission keys
ur_rights tinyblob NOT NULL,
UNIQUE KEY ur_user (ur_user)
) TYPE=InnoDB;
INSERT INTO /*$wgDBprefix*/user_rights SELECT user_id,user_rights FROM /*$wgDBprefix*/user;
ALTER TABLE /*$wgDBprefix*/user DROP COLUMN user_rights;
|