1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-26 01:43:45 +02:00

Warning changes for the other schema files

git-svn-id: file:///svn/phpbb/trunk@5646 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames
2006-03-17 21:02:32 +00:00
parent fb999487bc
commit f2cc5c093d
5 changed files with 106 additions and 8 deletions

View File

@@ -3,7 +3,6 @@
MSSQL Schema for phpBB 3.x - (c) phpBB Group, 2005
$Id$
@todo user_last_warning to users table and warnings table
*/
@@ -767,6 +766,7 @@ CREATE TABLE [phpbb_users] (
[user_lastpage] [varchar] (100) NOT NULL ,
[user_last_confirm_key] [varchar] (10) NOT NULL ,
[user_warnings] [int] NOT NULL ,
[user_last_warning] [int] NOT NULL ,
[user_login_attempts] [int] NOT NULL ,
[user_posts] [int] NOT NULL ,
[user_lang] [varchar] (30) NOT NULL ,
@@ -818,6 +818,15 @@ CREATE TABLE [phpbb_users] (
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [phpbb_warnings] (
[warning_id] [int] IDENTITY (1, 1) NOT NULL ,
[user_id] [int] NOT NULL ,
[post_id] [int] NOT NULL ,
[log_id] [int] NOT NULL ,
[warning_time] [int] NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [phpbb_words] (
[word_id] [int] IDENTITY (1, 1) NOT NULL ,
[word] [varchar] (100) NOT NULL ,
@@ -1173,6 +1182,13 @@ ALTER TABLE [phpbb_users] WITH NOCHECK ADD
) ON [PRIMARY]
GO
ALTER TABLE [phpbb_warnings] WITH NOCHECK ADD
CONSTRAINT [PK_phpbb_warnings] PRIMARY KEY CLUSTERED
(
[warning_id]
) ON [PRIMARY]
GO
ALTER TABLE [phpbb_words] WITH NOCHECK ADD
CONSTRAINT [PK_phpbb_words] PRIMARY KEY CLUSTERED
(
@@ -1613,6 +1629,7 @@ ALTER TABLE [phpbb_users] WITH NOCHECK ADD
CONSTRAINT [DF_users__user_lastmark] DEFAULT (0) FOR [user_lastmark],
CONSTRAINT [DF_users__user_lastpost_time] DEFAULT (0) FOR [user_lastpost_time],
CONSTRAINT [DF_users__user_warnings] DEFAULT (0) FOR [user_warnings],
CONSTRAINT [DF_users__user_last_warning] DEFAULT (0) FOR [user_last_warning],
CONSTRAINT [DF_users__user_login_attempts] DEFAULT (0) FOR [user_login_attempts],
CONSTRAINT [DF_users__user_posts] DEFAULT (0) FOR [user_posts],
CONSTRAINT [DF_users__user_timezone] DEFAULT (0) FOR [user_timezone],
@@ -1647,6 +1664,13 @@ ALTER TABLE [phpbb_users] WITH NOCHECK ADD
CONSTRAINT [DF_users__user_sig_bbcode_bitf] DEFAULT (0) FOR [user_sig_bbcode_bitfield]
GO
ALTER TABLE [phpbb_warnings] WITH NOCHECK ADD
CONSTRAINT [DF_warnings__user_id] DEFAULT (0) FOR [user_id],
CONSTRAINT [DF_warnings__post_id] DEFAULT (0) FOR [post_id],
CONSTRAINT [DF_warnings__log_id] DEFAULT (0) FOR [log_id],
CONSTRAINT [DF_warnings__warning_time] DEFAULT (0) FOR [warning_time]
GO
ALTER TABLE [phpbb_zebra] WITH NOCHECK ADD
CONSTRAINT [DF_zebra__user_id] DEFAULT (0) FOR [user_id],
CONSTRAINT [DF_zebra__zebra_id] DEFAULT (0) FOR [zebra_id],