summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-userlevels.sql
blob: ab3a9a7ba803fe2a2b469addc67302d0fbe7d764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- Oct. 1st 2004 - Ashar Voultoiz
-- Implement the new sitelevels
--
-- This is under development to provide a showcase in HEAD :o)

-- Hold group name and description
CREATE TABLE /*$wgDBprefix*/groups (
  gr_id int(5) unsigned NOT NULL auto_increment,
  gr_name varchar(50) NOT NULL default '',
  gr_description varchar(255) NOT NULL default '',
  gr_rights tinyblob,
  PRIMARY KEY  (gr_id)

) TYPE=InnoDB;

-- Relation table between user and groups
CREATE TABLE /*$wgDBprefix*/user_groups (
	ug_user int(5) unsigned NOT NULL default '0',
	ug_group int(5) unsigned NOT NULL default '0',
	PRIMARY KEY  (ug_user,ug_group)

) TYPE=InnoDB;