From 78c0f3ad5dc79fea68899f78ebcd57b77a41db95 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 1 Oct 2003 17:31:19 +0000 Subject: [PATCH] Module schema addition, note this may change depending on further discussion and screw ups git-svn-id: file:///svn/phpbb/trunk@4523 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/schemas/mysql_schema.sql | 24 ++++++++++++++++++++++++ phpBB/install/schemas/schema_data.sql | 13 +++++++++++++ 2 files changed, 37 insertions(+) diff --git a/phpBB/install/schemas/mysql_schema.sql b/phpBB/install/schemas/mysql_schema.sql index b7fabcaf5b..1645ff8a74 100644 --- a/phpBB/install/schemas/mysql_schema.sql +++ b/phpBB/install/schemas/mysql_schema.sql @@ -294,6 +294,20 @@ CREATE TABLE phpbb_moderator_cache ( KEY forum_id (forum_id) ); +# Table: 'phpbb_modules' +CREATE TABLE phpbb_modules ( + module_id mediumint(8) NOT NULL auto_increment, + module_type char(3) DEFAULT '' NOT NULL, + module_title varchar(50) DEFAULT '' NOT NULL, + module_filename varchar(50) DEFAULT '' NOT NULL, + module_order mediumint(4) DEFAULT '0' NOT NULL, + module_enabled tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, + module_subs text NOT NULL, + module_acl varchar(255) DEFAULT '' NOT NULL, + PRIMARY KEY (module_id), + KEY module_type (module_type,module_enabled) +); + # Table: 'phpbb_poll_results' CREATE TABLE phpbb_poll_results ( poll_option_id tinyint(4) unsigned NOT NULL DEFAULT '0', @@ -742,3 +756,13 @@ CREATE TABLE phpbb_words ( replacement char(100) NOT NULL, PRIMARY KEY (word_id) ); + +# Table: 'phpbb_zebra' +CREATE TABLE phpbb_zebra ( + user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, + zebra_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, + friend tinyint(1) DEFAULT '0' NOT NULL, + foe tinyint(1) DEFAULT '0' NOT NULL, + KEY user_id (user_id), + KEY zebra_id (zebra_id) +); diff --git a/phpBB/install/schemas/schema_data.sql b/phpBB/install/schemas/schema_data.sql index 8930dead74..32be76292c 100644 --- a/phpBB/install/schemas/schema_data.sql +++ b/phpBB/install/schemas/schema_data.sql @@ -344,6 +344,19 @@ INSERT INTO phpbb_user_group (group_id, user_id, user_pending, group_leader) VAL INSERT INTO phpbb_user_group (group_id, user_id, user_pending, group_leader) VALUES (7, 2, 0, 1); +# -- Modules + +# MSSQL IDENTITY phpbb_modules OFF # + +INSERT INTO phpbb_modules (module_type, module_title, module_filename, module_order, module_enabled, module_subs, module_acl) VALUES ('mcp', 'MAIN', 'main', 1, 1, '', ''); +INSERT INTO phpbb_modules (module_type, module_title, module_filename, module_order, module_enabled, module_subs, module_acl) VALUES ('ucp', 'MAIN', 'main', 1, 1, 'front\r\nsubscribed\r\ndrafts', ''); +INSERT INTO phpbb_modules (module_type, module_title, module_filename, module_order, module_enabled, module_subs, module_acl) VALUES ('ucp', 'PROFILE', 'profile', 2, 1, 'profile_info\r\nreg_details\r\nsignature\r\navatar', ''); +INSERT INTO phpbb_modules (module_type, module_title, module_filename, module_order, module_enabled, module_subs, module_acl) VALUES ('ucp', 'PREFS', 'prefs', 3, 1, 'personal\r\nview\r\npost', ''); +INSERT INTO phpbb_modules (module_type, module_title, module_filename, module_order, module_enabled, module_subs, module_acl) VALUES ('ucp', 'ZEBRA', 'zebra', 4, 1, 'friends\r\nfoes', ''); + +# MSSQL IDENTITY phpbb_modules OFF # + + # Permissions # Default user - admin rights