some of the underpinnings of community services

This commit is contained in:
Eric J. Bowersox
2003-06-15 19:02:26 +00:00
parent ce27befa54
commit 80d4ba4212
21 changed files with 657 additions and 11 deletions

View File

@@ -434,6 +434,28 @@ CREATE TABLE commprops (
PRIMARY KEY (cid, nsid, prop_name)
);
# The master table of community services.
CREATE TABLE commsvc_master (
svcid INT NOT NULL PRIMARY KEY AUTO_INCREMENT, # internal ID number for service
svc_nsid INT NOT NULL, # service namespace ID
svc_name VARCHAR(255) BINARY NOT NULL, # service name
mod_nsid INT NOT NULL, # namespace ID of module containing this service
mod_name VARCHAR(255) BINARY NOT NULL, # name of module containing this service
mod_filename VARCHAR(255) NOT NULL, # filename of module containing this service
obj_nsid INT NOT NULL, # namespace ID of object implementing service controller
obj_name VARCHAR(255) BINARY NOT NULL, # name of object implementing service controller
shortvar VARCHAR(255) NOT NULL, # short variable name for service
UNIQUE INDEX by_name (svc_nsid, svc_name)
);
# Indicates which services are enabled for which communities.
CREATE TABLE commsvc (
cid INT NOT NULL, # community ID
svcid INT NOT NULL, # ID number of enabled service
PRIMARY KEY (cid, svcid),
UNIQUE INDEX rev_index (svcid, cid)
);
# The master table of sideboxes.
CREATE TABLE sbox_master (
sbid INT NOT NULL PRIMARY KEY AUTO_INCREMENT, # sidebox identifier
@@ -1328,6 +1350,17 @@ INSERT INTO menuitems (menuid, sequence, itemtype, text, linktype, link) VALUES
(4, 2, 'TEXT', 'Categories', 'SERVLET', 'find_categories.js.vs' );
UPDATE menuitems SET ifdef_var = 'use_categories' WHERE menuid = 4 AND sequence = 2;
# Create the standard community menu. (ID #5)
INSERT INTO menus (menuid, menu_nsid, menu_name, title, subtitle)
VALUES (5, 16, 'community.menu', '', NULL);
INSERT INTO menuitems (menuid, sequence, itemtype, text, linktype, link) VALUES
(5, 0, 'TEXT', 'Home Page', 'SERVLET', 'TODO'),
(5, 60000, 'TEXT', 'Members', 'SERVLET', 'TODO'),
(5, 60100, 'TEXT', 'Profile', 'SERVLET', 'TODO'),
(5, 60200, 'TEXT', 'Administration', 'SERVLET', 'TODO'),
(5, 60300, 'SEPARATOR', NULL, NULL, NULL ),
(5, 60400, 'TEXT', 'Unjoin', 'SERVLET', 'TODO');
# Create the sideboxes tables.
INSERT INTO sbox_master (sbid, sb_nsid, sb_name, type_nsid, type_name, descr) VALUES
(1, 19, 'community.list', 19, 'community.list', 'Community Membership List'),