|
|
ef5584 |
/*
|
|
|
ef5584 |
|
|
|
ef5584 |
$Id: mssql_schema.sql 9127 2008-11-26 19:58:35Z acydburn $
|
|
|
ef5584 |
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
|
|
|
ef5584 |
BEGIN TRANSACTION
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_attachments'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_attachments] (
|
|
|
ef5584 |
[attach_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[post_msg_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[in_message] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[poster_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[is_orphan] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[physical_filename] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[real_filename] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[download_count] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[attach_comment] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[extension] [varchar] (100) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[mimetype] [varchar] (100) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[filesize] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[filetime] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[thumbnail] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_attachments] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_attachments] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[attach_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [filetime] ON [phpbb_attachments]([filetime]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [post_msg_id] ON [phpbb_attachments]([post_msg_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [topic_id] ON [phpbb_attachments]([topic_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [poster_id] ON [phpbb_attachments]([poster_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [is_orphan] ON [phpbb_attachments]([is_orphan]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_acl_groups'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_acl_groups] (
|
|
|
ef5584 |
[group_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[auth_option_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[auth_role_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[auth_setting] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [group_id] ON [phpbb_acl_groups]([group_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [auth_opt_id] ON [phpbb_acl_groups]([auth_option_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [auth_role_id] ON [phpbb_acl_groups]([auth_role_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_acl_options'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_acl_options] (
|
|
|
ef5584 |
[auth_option_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[auth_option] [varchar] (50) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[is_global] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[is_local] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[founder_only] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_acl_options] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_acl_options] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[auth_option_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [auth_option] ON [phpbb_acl_options]([auth_option]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_acl_roles'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_acl_roles] (
|
|
|
ef5584 |
[role_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[role_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[role_description] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[role_type] [varchar] (10) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[role_order] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_acl_roles] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_acl_roles] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[role_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [role_type] ON [phpbb_acl_roles]([role_type]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [role_order] ON [phpbb_acl_roles]([role_order]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_acl_roles_data'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_acl_roles_data] (
|
|
|
ef5584 |
[role_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[auth_option_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[auth_setting] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_acl_roles_data] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_acl_roles_data] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[role_id],
|
|
|
ef5584 |
[auth_option_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [ath_op_id] ON [phpbb_acl_roles_data]([auth_option_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_acl_users'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_acl_users] (
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[auth_option_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[auth_role_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[auth_setting] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [user_id] ON [phpbb_acl_users]([user_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [auth_option_id] ON [phpbb_acl_users]([auth_option_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [auth_role_id] ON [phpbb_acl_users]([auth_role_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_banlist'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_banlist] (
|
|
|
ef5584 |
[ban_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[ban_userid] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[ban_ip] [varchar] (40) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[ban_email] [varchar] (100) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[ban_start] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[ban_end] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[ban_exclude] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[ban_reason] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[ban_give_reason] [varchar] (255) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_banlist] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_banlist] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[ban_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [ban_end] ON [phpbb_banlist]([ban_end]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [ban_user] ON [phpbb_banlist]([ban_userid], [ban_exclude]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [ban_email] ON [phpbb_banlist]([ban_email], [ban_exclude]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [ban_ip] ON [phpbb_banlist]([ban_ip], [ban_exclude]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_bbcodes'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_bbcodes] (
|
|
|
ef5584 |
[bbcode_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[bbcode_tag] [varchar] (16) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[bbcode_helpline] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[display_on_posting] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[bbcode_match] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[bbcode_tpl] [text] DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[first_pass_match] [text] DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[first_pass_replace] [text] DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[second_pass_match] [text] DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[second_pass_replace] [text] DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_bbcodes] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_bbcodes] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[bbcode_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [display_on_post] ON [phpbb_bbcodes]([display_on_posting]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_bookmarks'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_bookmarks] (
|
|
|
ef5584 |
[topic_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_bookmarks] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_bookmarks] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[topic_id],
|
|
|
ef5584 |
[user_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_bots'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_bots] (
|
|
|
ef5584 |
[bot_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[bot_active] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[bot_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[bot_agent] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[bot_ip] [varchar] (255) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_bots] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_bots] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[bot_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [bot_active] ON [phpbb_bots]([bot_active]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_config'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_config] (
|
|
|
ef5584 |
[config_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[config_value] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[is_dynamic] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_config] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_config] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[config_name]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [is_dynamic] ON [phpbb_config]([is_dynamic]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_confirm'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_confirm] (
|
|
|
ef5584 |
[confirm_id] [char] (32) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[session_id] [char] (32) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[confirm_type] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[code] [varchar] (8) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[seed] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_confirm] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_confirm] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[session_id],
|
|
|
ef5584 |
[confirm_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [confirm_type] ON [phpbb_confirm]([confirm_type]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_disallow'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_disallow] (
|
|
|
ef5584 |
[disallow_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[disallow_username] [varchar] (255) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_disallow] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_disallow] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[disallow_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_drafts'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_drafts] (
|
|
|
ef5584 |
[draft_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[save_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[draft_subject] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[draft_message] [text] DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_drafts] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_drafts] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[draft_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [save_time] ON [phpbb_drafts]([save_time]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_extensions'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_extensions] (
|
|
|
ef5584 |
[extension_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[group_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[extension] [varchar] (100) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_extensions] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_extensions] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[extension_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_extension_groups'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_extension_groups] (
|
|
|
ef5584 |
[group_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[group_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[cat_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[allow_group] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[download_mode] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[upload_icon] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[max_filesize] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[allowed_forums] [varchar] (8000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[allow_in_pm] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_extension_groups] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_extension_groups] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[group_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_forums'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_forums] (
|
|
|
ef5584 |
[forum_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[parent_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[left_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[right_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_parents] [text] DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_desc] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_desc_bitfield] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_desc_options] [int] DEFAULT (7) NOT NULL ,
|
|
|
ef5584 |
[forum_desc_uid] [varchar] (8) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_link] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_password] [varchar] (40) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_style] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_image] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_rules] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_rules_link] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_rules_bitfield] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_rules_options] [int] DEFAULT (7) NOT NULL ,
|
|
|
ef5584 |
[forum_rules_uid] [varchar] (8) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_topics_per_page] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_type] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_status] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_posts] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_topics] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_topics_real] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_last_post_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_last_poster_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_last_post_subject] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_last_post_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_last_poster_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_last_poster_colour] [varchar] (6) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[forum_flags] [int] DEFAULT (32) NOT NULL ,
|
|
|
ef5584 |
[display_subforum_list] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[display_on_index] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[enable_indexing] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[enable_icons] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[enable_prune] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[prune_next] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[prune_days] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[prune_viewed] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[prune_freq] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_forums] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_forums] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[forum_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [left_right_id] ON [phpbb_forums]([left_id], [right_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [forum_lastpost_id] ON [phpbb_forums]([forum_last_post_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_forums_access'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_forums_access] (
|
|
|
ef5584 |
[forum_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[session_id] [char] (32) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_forums_access] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_forums_access] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[forum_id],
|
|
|
ef5584 |
[user_id],
|
|
|
ef5584 |
[session_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_forums_track'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_forums_track] (
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[mark_time] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_forums_track] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_forums_track] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[user_id],
|
|
|
ef5584 |
[forum_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_forums_watch'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_forums_watch] (
|
|
|
ef5584 |
[forum_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[notify_status] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [forum_id] ON [phpbb_forums_watch]([forum_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [user_id] ON [phpbb_forums_watch]([user_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [notify_stat] ON [phpbb_forums_watch]([notify_status]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_groups'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_groups] (
|
|
|
ef5584 |
[group_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[group_type] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[group_founder_manage] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[group_desc] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[group_desc_bitfield] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[group_desc_options] [int] DEFAULT (7) NOT NULL ,
|
|
|
ef5584 |
[group_desc_uid] [varchar] (8) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[group_display] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_avatar] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[group_avatar_type] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_avatar_width] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_avatar_height] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_rank] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_colour] [varchar] (6) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[group_sig_chars] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_receive_pm] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_message_limit] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_max_recipients] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_legend] [int] DEFAULT (1) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_groups] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_groups] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[group_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [group_legend_name] ON [phpbb_groups]([group_legend], [group_name]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_icons'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_icons] (
|
|
|
ef5584 |
[icons_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[icons_url] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[icons_width] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[icons_height] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[icons_order] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[display_on_posting] [int] DEFAULT (1) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_icons] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_icons] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[icons_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [display_on_posting] ON [phpbb_icons]([display_on_posting]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_lang'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_lang] (
|
|
|
ef5584 |
[lang_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[lang_iso] [varchar] (30) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[lang_dir] [varchar] (30) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[lang_english_name] [varchar] (100) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[lang_local_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[lang_author] [varchar] (255) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_lang] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_lang] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[lang_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [lang_iso] ON [phpbb_lang]([lang_iso]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_log'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_log] (
|
|
|
ef5584 |
[log_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[log_type] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[reportee_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[log_ip] [varchar] (40) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[log_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[log_operation] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[log_data] [text] DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_log] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_log] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[log_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [log_type] ON [phpbb_log]([log_type]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [forum_id] ON [phpbb_log]([forum_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [topic_id] ON [phpbb_log]([topic_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [reportee_id] ON [phpbb_log]([reportee_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [user_id] ON [phpbb_log]([user_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_moderator_cache'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_moderator_cache] (
|
|
|
ef5584 |
[forum_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[username] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[group_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[display_on_index] [int] DEFAULT (1) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [disp_idx] ON [phpbb_moderator_cache]([display_on_index]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [forum_id] ON [phpbb_moderator_cache]([forum_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_modules'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_modules] (
|
|
|
ef5584 |
[module_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[module_enabled] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[module_display] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[module_basename] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[module_class] [varchar] (10) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[parent_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[left_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[right_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[module_langname] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[module_mode] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[module_auth] [varchar] (255) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_modules] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_modules] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[module_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [left_right_id] ON [phpbb_modules]([left_id], [right_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [module_enabled] ON [phpbb_modules]([module_enabled]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [class_left_id] ON [phpbb_modules]([module_class], [left_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_poll_options'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_poll_options] (
|
|
|
ef5584 |
[poll_option_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[poll_option_text] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[poll_option_total] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [poll_opt_id] ON [phpbb_poll_options]([poll_option_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [topic_id] ON [phpbb_poll_options]([topic_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_poll_votes'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_poll_votes] (
|
|
|
ef5584 |
[topic_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[poll_option_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[vote_user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[vote_user_ip] [varchar] (40) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [topic_id] ON [phpbb_poll_votes]([topic_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [vote_user_id] ON [phpbb_poll_votes]([vote_user_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [vote_user_ip] ON [phpbb_poll_votes]([vote_user_ip]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_posts'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_posts] (
|
|
|
ef5584 |
[post_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[topic_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[poster_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[icon_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[poster_ip] [varchar] (40) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[post_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[post_approved] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[post_reported] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[enable_bbcode] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[enable_smilies] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[enable_magic_url] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[enable_sig] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[post_username] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[post_subject] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[post_text] [text] DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[post_checksum] [varchar] (32) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[post_attachment] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[bbcode_bitfield] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[bbcode_uid] [varchar] (8) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[post_postcount] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[post_edit_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[post_edit_reason] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[post_edit_user] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[post_edit_count] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[post_edit_locked] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_posts] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_posts] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[post_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [forum_id] ON [phpbb_posts]([forum_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [topic_id] ON [phpbb_posts]([topic_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [poster_ip] ON [phpbb_posts]([poster_ip]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [poster_id] ON [phpbb_posts]([poster_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [post_approved] ON [phpbb_posts]([post_approved]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [tid_post_time] ON [phpbb_posts]([topic_id], [post_time]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_privmsgs'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_privmsgs] (
|
|
|
ef5584 |
[msg_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[root_level] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[author_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[icon_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[author_ip] [varchar] (40) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[message_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[enable_bbcode] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[enable_smilies] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[enable_magic_url] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[enable_sig] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[message_subject] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[message_text] [text] DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[message_edit_reason] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[message_edit_user] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[message_attachment] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[bbcode_bitfield] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[bbcode_uid] [varchar] (8) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[message_edit_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[message_edit_count] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[to_address] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[bcc_address] [varchar] (4000) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_privmsgs] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_privmsgs] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[msg_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [author_ip] ON [phpbb_privmsgs]([author_ip]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [message_time] ON [phpbb_privmsgs]([message_time]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [author_id] ON [phpbb_privmsgs]([author_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [root_level] ON [phpbb_privmsgs]([root_level]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_privmsgs_folder'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_privmsgs_folder] (
|
|
|
ef5584 |
[folder_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[folder_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[pm_count] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_privmsgs_folder] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_privmsgs_folder] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[folder_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [user_id] ON [phpbb_privmsgs_folder]([user_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_privmsgs_rules'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_privmsgs_rules] (
|
|
|
ef5584 |
[rule_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[rule_check] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[rule_connection] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[rule_string] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[rule_user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[rule_group_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[rule_action] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[rule_folder_id] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_privmsgs_rules] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_privmsgs_rules] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[rule_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [user_id] ON [phpbb_privmsgs_rules]([user_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_privmsgs_to'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_privmsgs_to] (
|
|
|
ef5584 |
[msg_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[author_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[pm_deleted] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[pm_new] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[pm_unread] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[pm_replied] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[pm_marked] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[pm_forwarded] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[folder_id] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [msg_id] ON [phpbb_privmsgs_to]([msg_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [author_id] ON [phpbb_privmsgs_to]([author_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [usr_flder_id] ON [phpbb_privmsgs_to]([user_id], [folder_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_profile_fields'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_profile_fields] (
|
|
|
ef5584 |
[field_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[field_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[field_type] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[field_ident] [varchar] (20) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[field_length] [varchar] (20) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[field_minlen] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[field_maxlen] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[field_novalue] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[field_default_value] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[field_validation] [varchar] (20) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[field_required] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[field_show_on_reg] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[field_show_profile] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[field_hide] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[field_no_view] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[field_active] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[field_order] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_profile_fields] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_profile_fields] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[field_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [fld_type] ON [phpbb_profile_fields]([field_type]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [fld_ordr] ON [phpbb_profile_fields]([field_order]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_profile_fields_data'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_profile_fields_data] (
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_profile_fields_data] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_profile_fields_data] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[user_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_profile_fields_lang'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_profile_fields_lang] (
|
|
|
ef5584 |
[field_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[lang_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[option_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[field_type] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[lang_value] [varchar] (255) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_profile_fields_lang] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_profile_fields_lang] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[field_id],
|
|
|
ef5584 |
[lang_id],
|
|
|
ef5584 |
[option_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_profile_lang'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_profile_lang] (
|
|
|
ef5584 |
[field_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[lang_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[lang_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[lang_explain] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[lang_default_value] [varchar] (255) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_profile_lang] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_profile_lang] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[field_id],
|
|
|
ef5584 |
[lang_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_ranks'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_ranks] (
|
|
|
ef5584 |
[rank_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[rank_title] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[rank_min] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[rank_special] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[rank_image] [varchar] (255) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_ranks] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_ranks] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[rank_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_reports'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_reports] (
|
|
|
ef5584 |
[report_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[reason_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[post_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_notify] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[report_closed] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[report_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[report_text] [text] DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_reports] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_reports] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[report_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_reports_reasons'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_reports_reasons] (
|
|
|
ef5584 |
[reason_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[reason_title] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[reason_description] [text] DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[reason_order] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_reports_reasons] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_reports_reasons] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[reason_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_search_results'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_search_results] (
|
|
|
ef5584 |
[search_key] [varchar] (32) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[search_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[search_keywords] [text] DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[search_authors] [text] DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_search_results] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_search_results] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[search_key]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_search_wordlist'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_search_wordlist] (
|
|
|
ef5584 |
[word_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[word_text] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[word_common] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[word_count] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_search_wordlist] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_search_wordlist] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[word_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE UNIQUE INDEX [wrd_txt] ON [phpbb_search_wordlist]([word_text]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [wrd_cnt] ON [phpbb_search_wordlist]([word_count]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_search_wordmatch'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_search_wordmatch] (
|
|
|
ef5584 |
[post_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[word_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[title_match] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE UNIQUE INDEX [unq_mtch] ON [phpbb_search_wordmatch]([word_id], [post_id], [title_match]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [word_id] ON [phpbb_search_wordmatch]([word_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [post_id] ON [phpbb_search_wordmatch]([post_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_sessions'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_sessions] (
|
|
|
ef5584 |
[session_id] [char] (32) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[session_user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[session_forum_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[session_last_visit] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[session_start] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[session_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[session_ip] [varchar] (40) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[session_browser] [varchar] (150) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[session_forwarded_for] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[session_page] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[session_viewonline] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[session_autologin] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[session_admin] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_sessions] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_sessions] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[session_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [session_time] ON [phpbb_sessions]([session_time]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [session_user_id] ON [phpbb_sessions]([session_user_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [session_fid] ON [phpbb_sessions]([session_forum_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_sessions_keys'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_sessions_keys] (
|
|
|
ef5584 |
[key_id] [char] (32) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[last_ip] [varchar] (40) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[last_login] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_sessions_keys] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_sessions_keys] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[key_id],
|
|
|
ef5584 |
[user_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [last_login] ON [phpbb_sessions_keys]([last_login]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_sitelist'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_sitelist] (
|
|
|
ef5584 |
[site_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[site_ip] [varchar] (40) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[site_hostname] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[ip_exclude] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_sitelist] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_sitelist] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[site_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_smilies'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_smilies] (
|
|
|
ef5584 |
[smiley_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[code] [varchar] (50) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[emotion] [varchar] (50) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[smiley_url] [varchar] (50) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[smiley_width] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[smiley_height] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[smiley_order] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[display_on_posting] [int] DEFAULT (1) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_smilies] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_smilies] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[smiley_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [display_on_post] ON [phpbb_smilies]([display_on_posting]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_styles'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_styles] (
|
|
|
ef5584 |
[style_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[style_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[style_copyright] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[style_active] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[template_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[theme_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[imageset_id] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_styles] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_styles] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[style_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE UNIQUE INDEX [style_name] ON [phpbb_styles]([style_name]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [template_id] ON [phpbb_styles]([template_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [theme_id] ON [phpbb_styles]([theme_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [imageset_id] ON [phpbb_styles]([imageset_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_styles_template'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_styles_template] (
|
|
|
ef5584 |
[template_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[template_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[template_copyright] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[template_path] [varchar] (100) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[bbcode_bitfield] [varchar] (255) DEFAULT ('kNg=') NOT NULL ,
|
|
|
ef5584 |
[template_storedb] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[template_inherits_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[template_inherit_path] [varchar] (255) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_styles_template] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_styles_template] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[template_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE UNIQUE INDEX [tmplte_nm] ON [phpbb_styles_template]([template_name]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_styles_template_data'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_styles_template_data] (
|
|
|
ef5584 |
[template_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[template_filename] [varchar] (100) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[template_included] [varchar] (8000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[template_mtime] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[template_data] [text] DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [tid] ON [phpbb_styles_template_data]([template_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [tfn] ON [phpbb_styles_template_data]([template_filename]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_styles_theme'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_styles_theme] (
|
|
|
ef5584 |
[theme_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[theme_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[theme_copyright] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[theme_path] [varchar] (100) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[theme_storedb] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[theme_mtime] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[theme_data] [text] DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_styles_theme] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_styles_theme] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[theme_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE UNIQUE INDEX [theme_name] ON [phpbb_styles_theme]([theme_name]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_styles_imageset'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_styles_imageset] (
|
|
|
ef5584 |
[imageset_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[imageset_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[imageset_copyright] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[imageset_path] [varchar] (100) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_styles_imageset] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_styles_imageset] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[imageset_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE UNIQUE INDEX [imgset_nm] ON [phpbb_styles_imageset]([imageset_name]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_styles_imageset_data'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_styles_imageset_data] (
|
|
|
ef5584 |
[image_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[image_name] [varchar] (200) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[image_filename] [varchar] (200) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[image_lang] [varchar] (30) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[image_height] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[image_width] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[imageset_id] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_styles_imageset_data] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_styles_imageset_data] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[image_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [i_d] ON [phpbb_styles_imageset_data]([imageset_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_topics'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_topics] (
|
|
|
ef5584 |
[topic_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[forum_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[icon_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_attachment] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_approved] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[topic_reported] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_title] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[topic_poster] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_time_limit] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_views] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_replies] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_replies_real] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_status] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_type] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_first_post_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_first_poster_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[topic_first_poster_colour] [varchar] (6) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[topic_last_post_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_last_poster_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_last_poster_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[topic_last_poster_colour] [varchar] (6) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[topic_last_post_subject] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[topic_last_post_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_last_view_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_moved_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_bumped] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_bumper] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[poll_title] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[poll_start] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[poll_length] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[poll_max_options] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[poll_last_vote] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[poll_vote_change] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_topics] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_topics] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[topic_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [forum_id] ON [phpbb_topics]([forum_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [forum_id_type] ON [phpbb_topics]([forum_id], [topic_type]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [last_post_time] ON [phpbb_topics]([topic_last_post_time]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [topic_approved] ON [phpbb_topics]([topic_approved]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [forum_appr_last] ON [phpbb_topics]([forum_id], [topic_approved], [topic_last_post_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [fid_time_moved] ON [phpbb_topics]([forum_id], [topic_last_post_time], [topic_moved_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_topics_track'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_topics_track] (
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[forum_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[mark_time] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_topics_track] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_topics_track] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[user_id],
|
|
|
ef5584 |
[topic_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [forum_id] ON [phpbb_topics_track]([forum_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_topics_posted'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_topics_posted] (
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[topic_posted] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_topics_posted] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_topics_posted] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[user_id],
|
|
|
ef5584 |
[topic_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_topics_watch'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_topics_watch] (
|
|
|
ef5584 |
[topic_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[notify_status] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [topic_id] ON [phpbb_topics_watch]([topic_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [user_id] ON [phpbb_topics_watch]([user_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [notify_stat] ON [phpbb_topics_watch]([notify_status]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_user_group'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_user_group] (
|
|
|
ef5584 |
[group_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_leader] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_pending] [int] DEFAULT (1) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [group_id] ON [phpbb_user_group]([group_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [user_id] ON [phpbb_user_group]([user_id]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [group_leader] ON [phpbb_user_group]([group_leader]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_users'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_users] (
|
|
|
ef5584 |
[user_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[user_type] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[group_id] [int] DEFAULT (3) NOT NULL ,
|
|
|
ef5584 |
[user_permissions] [text] DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_perm_from] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_ip] [varchar] (40) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_regdate] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[username] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[username_clean] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_password] [varchar] (40) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_passchg] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_pass_convert] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_email] [varchar] (100) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_email_hash] [float] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_birthday] [varchar] (10) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_lastvisit] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_lastmark] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_lastpost_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_lastpage] [varchar] (200) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_last_confirm_key] [varchar] (10) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_last_search] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_warnings] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_last_warning] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_login_attempts] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_inactive_reason] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_inactive_time] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_posts] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_lang] [varchar] (30) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_timezone] [float] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_dst] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_dateformat] [varchar] (30) DEFAULT ('d M Y H:i') NOT NULL ,
|
|
|
ef5584 |
[user_style] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_rank] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_colour] [varchar] (6) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_new_privmsg] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_unread_privmsg] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_last_privmsg] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_message_rules] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_full_folder] [int] DEFAULT (-3) NOT NULL ,
|
|
|
ef5584 |
[user_emailtime] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_topic_show_days] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_topic_sortby_type] [varchar] (1) DEFAULT ('t') NOT NULL ,
|
|
|
ef5584 |
[user_topic_sortby_dir] [varchar] (1) DEFAULT ('d') NOT NULL ,
|
|
|
ef5584 |
[user_post_show_days] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_post_sortby_type] [varchar] (1) DEFAULT ('t') NOT NULL ,
|
|
|
ef5584 |
[user_post_sortby_dir] [varchar] (1) DEFAULT ('a') NOT NULL ,
|
|
|
ef5584 |
[user_notify] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_notify_pm] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[user_notify_type] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_allow_pm] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[user_allow_viewonline] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[user_allow_viewemail] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[user_allow_massemail] [int] DEFAULT (1) NOT NULL ,
|
|
|
ef5584 |
[user_options] [int] DEFAULT (895) NOT NULL ,
|
|
|
ef5584 |
[user_avatar] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_avatar_type] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_avatar_width] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_avatar_height] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[user_sig] [text] DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_sig_bbcode_uid] [varchar] (8) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_sig_bbcode_bitfield] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_from] [varchar] (100) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_icq] [varchar] (15) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_aim] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_yim] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_msnm] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_jabber] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_website] [varchar] (200) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_occ] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_interests] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_actkey] [varchar] (32) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_newpasswd] [varchar] (40) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[user_form_salt] [varchar] (32) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_users] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_users] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[user_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [user_birthday] ON [phpbb_users]([user_birthday]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [user_email_hash] ON [phpbb_users]([user_email_hash]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE INDEX [user_type] ON [phpbb_users]([user_type]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
CREATE UNIQUE INDEX [username_clean] ON [phpbb_users]([username_clean]) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_warnings'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_warnings] (
|
|
|
ef5584 |
[warning_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[post_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[log_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[warning_time] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_warnings] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_warnings] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[warning_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_words'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_words] (
|
|
|
ef5584 |
[word_id] [int] IDENTITY (1, 1) NOT NULL ,
|
|
|
ef5584 |
[word] [varchar] (255) DEFAULT ('') NOT NULL ,
|
|
|
ef5584 |
[replacement] [varchar] (255) DEFAULT ('') NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_words] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_words] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[word_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
/*
|
|
|
ef5584 |
Table: 'phpbb_zebra'
|
|
|
ef5584 |
*/
|
|
|
ef5584 |
CREATE TABLE [phpbb_zebra] (
|
|
|
ef5584 |
[user_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[zebra_id] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[friend] [int] DEFAULT (0) NOT NULL ,
|
|
|
ef5584 |
[foe] [int] DEFAULT (0) NOT NULL
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
ALTER TABLE [phpbb_zebra] WITH NOCHECK ADD
|
|
|
ef5584 |
CONSTRAINT [PK_phpbb_zebra] PRIMARY KEY CLUSTERED
|
|
|
ef5584 |
(
|
|
|
ef5584 |
[user_id],
|
|
|
ef5584 |
[zebra_id]
|
|
|
ef5584 |
) ON [PRIMARY]
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
COMMIT
|
|
|
ef5584 |
GO
|
|
|
ef5584 |
|