mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
Associated schema changes
git-svn-id: file:///svn/phpbb/trunk@2537 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
fa3d0694a8
commit
9649ececed
7 changed files with 39 additions and 3 deletions
Binary file not shown.
|
@ -67,7 +67,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('record_online_user
|
|||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_name', 'www.yourdomain.tld');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_port', '80');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('script_path', '/phpBB2/');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '.1.0 [20020420]');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '.1.0 [20020421]');
|
||||
|
||||
/*
|
||||
-- Categories
|
||||
|
|
|
@ -88,6 +88,13 @@ CREATE TABLE [phpbb_forums] (
|
|||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE TABLE [phpbb_forums_watch] (
|
||||
[forum_id] [int] NOT NULL ,
|
||||
[user_id] [int] NOT NULL ,
|
||||
[notify_status] [smallint] NOT NULL
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE TABLE [phpbb_groups] (
|
||||
[group_id] [int] NOT NULL ,
|
||||
[group_type] [smallint] NULL ,
|
||||
|
@ -604,6 +611,9 @@ GO
|
|||
CREATE INDEX [IX_phpbb_forums] ON [phpbb_forums]([cat_id], [forum_order], [forum_last_post_id]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [IX_phpbb_forums_watch] ON [phpbb_forums_watch]([forum_id], [user_id]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [IX_phpbb_groups] ON [phpbb_groups]([group_single_user]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('record_online_date
|
|||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_name', 'www.myserver.tld');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_port', '80');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('script_path', '/phpBB2/');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '.1.0 [20020420]');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '.1.0 [20020421]');
|
||||
|
||||
|
||||
# -- Categories
|
||||
|
|
|
@ -150,6 +150,20 @@ CREATE TABLE phpbb_forums (
|
|||
);
|
||||
|
||||
|
||||
# --------------------------------------------------------
|
||||
#
|
||||
# Table structure for table 'phpbb_forums_watch'
|
||||
#
|
||||
CREATE TABLE phpbb_forums_watch (
|
||||
forum_id smallint(5) UNSIGNED NOT NULL DEFAULT '0',
|
||||
user_id mediumint(8) NOT NULL DEFAULT '0',
|
||||
notify_status tinyint(1) NOT NULL default '0',
|
||||
KEY forum_id (forum_id),
|
||||
KEY user_id (user_id),
|
||||
KEY notify_status (notify_status)
|
||||
);
|
||||
|
||||
|
||||
# --------------------------------------------------------
|
||||
#
|
||||
# Table structure for table 'phpbb_posts'
|
||||
|
|
|
@ -61,7 +61,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('record_online_date
|
|||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_name', 'www.yourdomain.tld');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_port', '80');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('script_path', '/phpBB2/');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '.1.0 [20020420]');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '.1.0 [20020421]');
|
||||
|
||||
-- Categories
|
||||
INSERT INTO phpbb_categories (cat_id, cat_title, cat_order) VALUES (1, 'Test category 1', 10);
|
||||
|
|
|
@ -135,6 +135,18 @@ CREATE INDEX forums_order_phpbb_forums_index ON phpbb_forums (forum_order);
|
|||
CREATE INDEX forum_last_post_id_phpbb_forums_index ON phpbb_forums (forum_last_post_id);
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Table structure for table phpbb_forums_watch
|
||||
-------------------------------------------------------- */
|
||||
CREATE TABLE phpbb_forums_watch (
|
||||
forum_id int4,
|
||||
user_id int4,
|
||||
notify_status int2 NOT NULL default '0'
|
||||
);
|
||||
CREATE INDEX forum_id_phpbb_forums_watch_index ON phpbb_forums_watch (forum_id);
|
||||
CREATE INDEX user_id_phpbb_forums_watch_index ON phpbb_forums_watch (user_id);
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Table structure for table phpbb_forum_prune
|
||||
-------------------------------------------------------- */
|
||||
|
|
Loading…
Add table
Reference in a new issue