2004-08-24 20:41:07 +00:00
|
|
|
-- 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 user_rights (
|
2004-10-24 09:51:13 +00:00
|
|
|
ur_user int(5) unsigned NOT NULL,
|
2004-10-24 09:21:53 +00:00
|
|
|
ur_rights tinyblob NOT NULL default '',
|
2004-10-24 12:23:12 +00:00
|
|
|
UNIQUE KEY ur_user (ur_user)
|
2004-08-24 20:41:07 +00:00
|
|
|
) PACK_KEYS=1;
|
|
|
|
|
|
|
|
|
|
INSERT INTO user_rights SELECT user_id,user_rights FROM user;
|
|
|
|
|
|
|
|
|
|
ALTER TABLE user DROP COLUMN user_rights;
|