aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-01 13:20:01 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-01 13:20:01 +0000
commit43abdcbe55e3a041add586982fbf3f806d6f482f (patch)
tree4c7ca18434a74354c4bd6f2b6751f0575fba07aa /engine
parent2936d7dcb16babb5d2a14501d2636657c7c2dc22 (diff)
downloadelgg-43abdcbe55e3a041add586982fbf3f806d6f482f.tar.gz
elgg-43abdcbe55e3a041add586982fbf3f806d6f482f.tar.bz2
Added groups, refs #106
git-svn-id: https://code.elgg.org/elgg/trunk@1230 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/schema/mysql.sql18
1 files changed, 15 insertions, 3 deletions
diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql
index 3936f3ab2..180d39f97 100644
--- a/engine/schema/mysql.sql
+++ b/engine/schema/mysql.sql
@@ -26,7 +26,7 @@ CREATE TABLE `prefix_config` (
CREATE TABLE `prefix_entities` (
`guid` bigint(20) unsigned NOT NULL auto_increment,
- `type` enum ('object', 'user', 'container', 'site') NOT NULL,
+ `type` enum ('object', 'user', 'group', 'site') NOT NULL,
`subtype` int(11) NULL,
`owner_guid` bigint(20) unsigned NOT NULL,
@@ -46,7 +46,7 @@ CREATE TABLE `prefix_entities` (
CREATE TABLE `prefix_entity_subtypes` (
`id` int(11) NOT NULL auto_increment,
- `type` enum ('object', 'user', 'container', 'site') NOT NULL,
+ `type` enum ('object', 'user', 'group', 'site') NOT NULL,
`subtype` varchar(50) NOT NULL,
class varchar(50) NOT NULL default '',
@@ -86,6 +86,7 @@ INSERT INTO `prefix_access_groups` (`id`, `name`, `site_guid`) VALUES
(1, 'LOGGED_IN', 0),
(2, 'PUBLIC', 0);
+
-- Access containers
CREATE TABLE `prefix_access_group_membership` (
`user_guid` int(11) NOT NULL,
@@ -102,7 +103,7 @@ CREATE TABLE `prefix_access_group_membership` (
-- Extra information relating to "objects"
CREATE TABLE `prefix_objects_entity` (
`guid` bigint(20) unsigned NOT NULL,
- `container_guid` bigint(20) unsigned NOT NULL,
+ `group_guid` bigint(20) unsigned NOT NULL,
`title` text NOT NULL,
`description` text NOT NULL,
@@ -146,6 +147,17 @@ CREATE TABLE `prefix_users_entity` (
FULLTEXT KEY `name` (`name`),
FULLTEXT KEY (`name`,`username`)
) ENGINE=MyISAM;
+
+-- Extra information relating to "groups"
+CREATE TABLE `prefix_groups_entity`
+ `guid` bigint(20) unsigned NOT NULL,
+
+ `name` text NOT NULL,
+ `description` text NOT NULL,
+
+ PRIMARY KEY (`guid`),
+ FULLTEXT KEY (`name`,`description`)
+) ENGINE=MyISAM;
--
-- *** Annotations and tags ***