mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Updated schema for session stuff + fix for mysql search result id
git-svn-id: file:///svn/phpbb/trunk@1563 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
16df4a91ee
commit
f6cea9c614
4 changed files with 19 additions and 5 deletions
Binary file not shown.
|
@ -312,6 +312,9 @@ CREATE TABLE [phpbb_users] (
|
||||||
[username] [varchar] (25) NOT NULL ,
|
[username] [varchar] (25) NOT NULL ,
|
||||||
[user_password] [varchar] (32) NOT NULL ,
|
[user_password] [varchar] (32) NOT NULL ,
|
||||||
[user_autologin_key] [varchar] (32) NULL ,
|
[user_autologin_key] [varchar] (32) NULL ,
|
||||||
|
[user_session_time] [int] NOT NULL ,
|
||||||
|
[user_session_page] [smallint] NOT NULL ,
|
||||||
|
[user_lastvisit] [int] NOT NULL ,
|
||||||
[user_regdate] [int] NOT NULL ,
|
[user_regdate] [int] NOT NULL ,
|
||||||
[user_level] [smallint] NOT NULL ,
|
[user_level] [smallint] NOT NULL ,
|
||||||
[user_posts] [int] NOT NULL ,
|
[user_posts] [int] NOT NULL ,
|
||||||
|
@ -319,7 +322,6 @@ CREATE TABLE [phpbb_users] (
|
||||||
[user_style] [int] NULL ,
|
[user_style] [int] NULL ,
|
||||||
[user_lang] [varchar] (255) NULL ,
|
[user_lang] [varchar] (255) NULL ,
|
||||||
[user_dateformat] [varchar] (14) NOT NULL ,
|
[user_dateformat] [varchar] (14) NOT NULL ,
|
||||||
[user_lastvisit] [int] NOT NULL ,
|
|
||||||
[user_new_privmsg] [smallint] NOT NULL ,
|
[user_new_privmsg] [smallint] NOT NULL ,
|
||||||
[user_unread_privmsg] [smallint] NOT NULL ,
|
[user_unread_privmsg] [smallint] NOT NULL ,
|
||||||
[user_last_privmsg] [int] NOT NULL ,
|
[user_last_privmsg] [int] NOT NULL ,
|
||||||
|
@ -567,6 +569,8 @@ GO
|
||||||
ALTER TABLE [phpbb_users] WITH NOCHECK ADD
|
ALTER TABLE [phpbb_users] WITH NOCHECK ADD
|
||||||
CONSTRAINT [DF_phpbb_users_user_level] DEFAULT (0) FOR [user_level],
|
CONSTRAINT [DF_phpbb_users_user_level] DEFAULT (0) FOR [user_level],
|
||||||
CONSTRAINT [DF_phpbb_users_user_posts] DEFAULT (0) FOR [user_posts],
|
CONSTRAINT [DF_phpbb_users_user_posts] DEFAULT (0) FOR [user_posts],
|
||||||
|
CONSTRAINT [DF_phpbb_users_user_session_time] DEFAULT (0) FOR [user_session_time],
|
||||||
|
CONSTRAINT [DF_phpbb_users_user_session_page] DEFAULT (0) FOR [user_session_page],
|
||||||
CONSTRAINT [DF_phpbb_users_user_lastvisit] DEFAULT (0) FOR [user_lastvisit],
|
CONSTRAINT [DF_phpbb_users_user_lastvisit] DEFAULT (0) FOR [user_lastvisit],
|
||||||
CONSTRAINT [DF_phpbb_users_user_new_privmsg] DEFAULT (0) FOR [user_new_privmsg],
|
CONSTRAINT [DF_phpbb_users_user_new_privmsg] DEFAULT (0) FOR [user_new_privmsg],
|
||||||
CONSTRAINT [DF_phpbb_users_user_unread_privmsg] DEFAULT (0) FOR [user_unread_privmsg],
|
CONSTRAINT [DF_phpbb_users_user_unread_privmsg] DEFAULT (0) FOR [user_unread_privmsg],
|
||||||
|
@ -636,6 +640,9 @@ GO
|
||||||
CREATE INDEX [IX_phpbb_topics_watch] ON [phpbb_topics_watch]([topic_id], [user_id]) ON [PRIMARY]
|
CREATE INDEX [IX_phpbb_topics_watch] ON [phpbb_topics_watch]([topic_id], [user_id]) ON [PRIMARY]
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
CREATE INDEX [IX_phpbb_users] ON [phpbb_users]([user_session_time]) ON [PRIMARY]
|
||||||
|
GO
|
||||||
|
|
||||||
CREATE INDEX [IX_phpbb_user_group] ON [phpbb_user_group]([group_id], [user_id]) ON [PRIMARY]
|
CREATE INDEX [IX_phpbb_user_group] ON [phpbb_user_group]([group_id], [user_id]) ON [PRIMARY]
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
|
|
@ -243,7 +243,7 @@ CREATE TABLE phpbb_ranks (
|
||||||
# Table structure for table `phpbb_search_results`
|
# Table structure for table `phpbb_search_results`
|
||||||
#
|
#
|
||||||
CREATE TABLE phpbb_search_results (
|
CREATE TABLE phpbb_search_results (
|
||||||
search_id mediumint(8) UNSIGNED NOT NULL default '0',
|
search_id int(11) UNSIGNED NOT NULL default '0',
|
||||||
session_id char(32) NOT NULL default '',
|
session_id char(32) NOT NULL default '',
|
||||||
search_array text NOT NULL,
|
search_array text NOT NULL,
|
||||||
PRIMARY KEY (search_id),
|
PRIMARY KEY (search_id),
|
||||||
|
@ -458,6 +458,9 @@ CREATE TABLE phpbb_users (
|
||||||
username varchar(25) NOT NULL,
|
username varchar(25) NOT NULL,
|
||||||
user_password varchar(32) NOT NULL,
|
user_password varchar(32) NOT NULL,
|
||||||
user_autologin_key varchar(32),
|
user_autologin_key varchar(32),
|
||||||
|
user_session_time int(11) DEFAULT '0' NOT NULL,
|
||||||
|
user_session_page smallint(5) DEFAULT '0' NOT NULL,
|
||||||
|
user_lastvisit int(11) DEFAULT '0' NOT NULL,
|
||||||
user_regdate int(11) DEFAULT '0' NOT NULL,
|
user_regdate int(11) DEFAULT '0' NOT NULL,
|
||||||
user_level tinyint(4) DEFAULT '0',
|
user_level tinyint(4) DEFAULT '0',
|
||||||
user_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
user_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
|
@ -465,7 +468,6 @@ CREATE TABLE phpbb_users (
|
||||||
user_style tinyint(4),
|
user_style tinyint(4),
|
||||||
user_lang varchar(255),
|
user_lang varchar(255),
|
||||||
user_dateformat varchar(14) DEFAULT 'd M Y H:i' NOT NULL,
|
user_dateformat varchar(14) DEFAULT 'd M Y H:i' NOT NULL,
|
||||||
user_lastvisit int(11) DEFAULT '0' NOT NULL,
|
|
||||||
user_new_privmsg smallint(5) UNSIGNED DEFAULT '0' NOT NULL,
|
user_new_privmsg smallint(5) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
user_unread_privmsg smallint(5) UNSIGNED DEFAULT '0' NOT NULL,
|
user_unread_privmsg smallint(5) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
user_last_privmsg int(11) DEFAULT '0' NOT NULL,
|
user_last_privmsg int(11) DEFAULT '0' NOT NULL,
|
||||||
|
@ -497,7 +499,8 @@ CREATE TABLE phpbb_users (
|
||||||
user_interests varchar(255),
|
user_interests varchar(255),
|
||||||
user_actkey varchar(32),
|
user_actkey varchar(32),
|
||||||
user_newpasswd varchar(32),
|
user_newpasswd varchar(32),
|
||||||
PRIMARY KEY (user_id)
|
PRIMARY KEY (user_id),
|
||||||
|
KEY user_session_time (user_session_time)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -447,6 +447,9 @@ CREATE TABLE phpbb_users (
|
||||||
user_regdate int4 DEFAULT '0' NOT NULL,
|
user_regdate int4 DEFAULT '0' NOT NULL,
|
||||||
user_password varchar(32) DEFAULT '' NOT NULL,
|
user_password varchar(32) DEFAULT '' NOT NULL,
|
||||||
user_autologin_key varchar(32),
|
user_autologin_key varchar(32),
|
||||||
|
user_session_time int4 DEFAULT '0' NOT NULL,
|
||||||
|
user_session_page int2 DEFAULT '0' NOT NULL,
|
||||||
|
user_lastvisit int4 DEFAULT '0' NOT NULL,
|
||||||
user_email varchar(255),
|
user_email varchar(255),
|
||||||
user_icq varchar(15),
|
user_icq varchar(15),
|
||||||
user_website varchar(100),
|
user_website varchar(100),
|
||||||
|
@ -460,7 +463,6 @@ CREATE TABLE phpbb_users (
|
||||||
user_yim varchar(255),
|
user_yim varchar(255),
|
||||||
user_msnm varchar(255),
|
user_msnm varchar(255),
|
||||||
user_posts int4 DEFAULT '0' NOT NULL,
|
user_posts int4 DEFAULT '0' NOT NULL,
|
||||||
user_lastvisit int4 DEFAULT '0' NOT NULL,
|
|
||||||
user_new_privmsg int2 DEFAULT '0' NOT NULL,
|
user_new_privmsg int2 DEFAULT '0' NOT NULL,
|
||||||
user_unread_privmsg int2 DEFAULT '0' NOT NULL,
|
user_unread_privmsg int2 DEFAULT '0' NOT NULL,
|
||||||
user_last_privmsg int4 DEFAULT '0' NOT NULL,
|
user_last_privmsg int4 DEFAULT '0' NOT NULL,
|
||||||
|
@ -488,6 +490,8 @@ CREATE TABLE phpbb_users (
|
||||||
CONSTRAINT phpbb_users_pkey PRIMARY KEY (user_id)
|
CONSTRAINT phpbb_users_pkey PRIMARY KEY (user_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX user_session_time_phpbb_users_index ON phpbb_users (user_session_time);
|
||||||
|
|
||||||
/* --------------------------------------------------------
|
/* --------------------------------------------------------
|
||||||
Table structure for table phpbb_vote_desc
|
Table structure for table phpbb_vote_desc
|
||||||
-------------------------------------------------------- */
|
-------------------------------------------------------- */
|
||||||
|
|
Loading…
Add table
Reference in a new issue