From 183851b06bd6c52f3cae5375f433da720d410447 Mon Sep 17 00:00:00 2001
From: Pierre Schmitz <pierre@archlinux.de>
Date: Wed, 11 Oct 2006 18:12:39 +0000
Subject: MediaWiki 1.7.1 wiederhergestellt

---
 .../archives/patch-userlevels-defaultgroups.sql    | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 maintenance/archives/patch-userlevels-defaultgroups.sql

(limited to 'maintenance/archives/patch-userlevels-defaultgroups.sql')

diff --git a/maintenance/archives/patch-userlevels-defaultgroups.sql b/maintenance/archives/patch-userlevels-defaultgroups.sql
new file mode 100644
index 00000000..065653da
--- /dev/null
+++ b/maintenance/archives/patch-userlevels-defaultgroups.sql
@@ -0,0 +1,30 @@
+--
+-- Provide default groups
+-- Should probably be inserted when someone create a new database
+--
+
+INSERT INTO /*$wgDBprefix*/groups (gr_id,gr_name,gr_description,gr_rights)
+	VALUES (
+		1,':group-anon-name',':group-anon-desc',
+		'read,edit,createaccount'
+	);
+INSERT INTO /*$wgDBprefix*/groups (gr_id,gr_name,gr_description,gr_rights)
+	VALUES (
+		2,':group-loggedin-name',':group-loggedin-desc',
+		'read,edit,move,upload,validate,createaccount'
+	);
+INSERT INTO /*$wgDBprefix*/groups (gr_id,gr_name,gr_description,gr_rights)
+	VALUES (
+		3,':group-admin-name',':group-admin-desc',
+		'read,edit,move,upload,validate,createaccount,delete,undelete,protect,block,upload,asksql,rollback,patrol,editinterface,import'
+	);
+INSERT INTO /*$wgDBprefix*/groups (gr_id,gr_name,gr_description,gr_rights)
+	VALUES (
+		4,':group-bureaucrat-name',':group-bureaucrat-desc',
+		'read,edit,move,upload,validate,createaccount,delete,undelete,protect,block,upload,asksql,rollback,patrol,editinterface,import,makesysop'
+	);
+INSERT INTO /*$wgDBprefix*/groups (gr_id,gr_name,gr_description,gr_rights)
+	VALUES (
+		5,':group-steward-name',':group-steward-desc',
+		'read,edit,move,upload,validate,createaccount,delete,undelete,protect,block,upload,asksql,rollback,patrol,editinterface,import,makesysop,userrights,grouprights,siteadmin'
+	);
-- 
cgit v1.2.3-54-g00ecf

