mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11459] Refresh schema files
PHPBB3-11459
This commit is contained in:
parent
0fd0be8e85
commit
ac6f0c94bf
7 changed files with 244 additions and 139 deletions
|
@ -583,6 +583,20 @@ CREATE INDEX phpbb_login_attempts_att_for ON phpbb_login_attempts(attempt_forwar
|
||||||
CREATE INDEX phpbb_login_attempts_att_time ON phpbb_login_attempts(attempt_time);;
|
CREATE INDEX phpbb_login_attempts_att_time ON phpbb_login_attempts(attempt_time);;
|
||||||
CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts(user_id);;
|
CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts(user_id);;
|
||||||
|
|
||||||
|
# Table: 'phpbb_migrations'
|
||||||
|
CREATE TABLE phpbb_migrations (
|
||||||
|
migration_name VARCHAR(255) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||||
|
migration_depends_on BLOB SUB_TYPE TEXT CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||||
|
migration_schema_done INTEGER DEFAULT 0 NOT NULL,
|
||||||
|
migration_data_done INTEGER DEFAULT 0 NOT NULL,
|
||||||
|
migration_data_state BLOB SUB_TYPE TEXT CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||||
|
migration_start_time INTEGER DEFAULT 0 NOT NULL,
|
||||||
|
migration_end_time INTEGER DEFAULT 0 NOT NULL
|
||||||
|
);;
|
||||||
|
|
||||||
|
ALTER TABLE phpbb_migrations ADD PRIMARY KEY (migration_name);;
|
||||||
|
|
||||||
|
|
||||||
# Table: 'phpbb_moderator_cache'
|
# Table: 'phpbb_moderator_cache'
|
||||||
CREATE TABLE phpbb_moderator_cache (
|
CREATE TABLE phpbb_moderator_cache (
|
||||||
forum_id INTEGER DEFAULT 0 NOT NULL,
|
forum_id INTEGER DEFAULT 0 NOT NULL,
|
||||||
|
@ -762,7 +776,7 @@ CREATE INDEX phpbb_posts_topic_id ON phpbb_posts(topic_id);;
|
||||||
CREATE INDEX phpbb_posts_poster_ip ON phpbb_posts(poster_ip);;
|
CREATE INDEX phpbb_posts_poster_ip ON phpbb_posts(poster_ip);;
|
||||||
CREATE INDEX phpbb_posts_poster_id ON phpbb_posts(poster_id);;
|
CREATE INDEX phpbb_posts_poster_id ON phpbb_posts(poster_id);;
|
||||||
CREATE INDEX phpbb_posts_tid_post_time ON phpbb_posts(topic_id, post_time);;
|
CREATE INDEX phpbb_posts_tid_post_time ON phpbb_posts(topic_id, post_time);;
|
||||||
CREATE INDEX phpbb_posts_post_username ON phpbb_posts(post_username:255);;
|
CREATE INDEX phpbb_posts_post_username ON phpbb_posts(post_username);;
|
||||||
CREATE INDEX phpbb_posts_post_visibility ON phpbb_posts(post_visibility);;
|
CREATE INDEX phpbb_posts_post_visibility ON phpbb_posts(post_visibility);;
|
||||||
|
|
||||||
CREATE GENERATOR phpbb_posts_gen;;
|
CREATE GENERATOR phpbb_posts_gen;;
|
||||||
|
|
|
@ -725,6 +725,27 @@ CREATE INDEX [user_id] ON [phpbb_login_attempts]([user_id])
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Table: 'phpbb_migrations'
|
||||||
|
*/
|
||||||
|
CREATE TABLE [phpbb_migrations] (
|
||||||
|
[migration_name] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||||
|
[migration_depends_on] [varchar] (8000) DEFAULT ('') NOT NULL ,
|
||||||
|
[migration_schema_done] [int] DEFAULT (0) NOT NULL ,
|
||||||
|
[migration_data_done] [int] DEFAULT (0) NOT NULL ,
|
||||||
|
[migration_data_state] [varchar] (8000) DEFAULT ('') NOT NULL ,
|
||||||
|
[migration_start_time] [int] DEFAULT (0) NOT NULL ,
|
||||||
|
[migration_end_time] [int] DEFAULT (0) NOT NULL
|
||||||
|
)GO
|
||||||
|
|
||||||
|
ALTER TABLE [phpbb_migrations] WITH NOCHECK ADD
|
||||||
|
CONSTRAINT [PK_phpbb_migrations] PRIMARY KEY CLUSTERED
|
||||||
|
(
|
||||||
|
[migration_name]
|
||||||
|
)
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Table: 'phpbb_moderator_cache'
|
Table: 'phpbb_moderator_cache'
|
||||||
*/
|
*/
|
||||||
|
@ -987,7 +1008,7 @@ GO
|
||||||
CREATE INDEX [tid_post_time] ON [phpbb_posts]([topic_id], [post_time])
|
CREATE INDEX [tid_post_time] ON [phpbb_posts]([topic_id], [post_time])
|
||||||
GO
|
GO
|
||||||
|
|
||||||
CREATE INDEX [post_username] ON [phpbb_posts]([post_username:255])
|
CREATE INDEX [post_username] ON [phpbb_posts]([post_username])
|
||||||
GO
|
GO
|
||||||
|
|
||||||
CREATE INDEX [post_visibility] ON [phpbb_posts]([post_visibility])
|
CREATE INDEX [post_visibility] ON [phpbb_posts]([post_visibility])
|
||||||
|
|
|
@ -406,6 +406,19 @@ CREATE TABLE phpbb_login_attempts (
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
# Table: 'phpbb_migrations'
|
||||||
|
CREATE TABLE phpbb_migrations (
|
||||||
|
migration_name varbinary(255) DEFAULT '' NOT NULL,
|
||||||
|
migration_depends_on blob NOT NULL,
|
||||||
|
migration_schema_done tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
|
migration_data_done tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
|
migration_data_state blob NOT NULL,
|
||||||
|
migration_start_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
|
migration_end_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
|
PRIMARY KEY (migration_name)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
# Table: 'phpbb_moderator_cache'
|
# Table: 'phpbb_moderator_cache'
|
||||||
CREATE TABLE phpbb_moderator_cache (
|
CREATE TABLE phpbb_moderator_cache (
|
||||||
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
|
@ -545,7 +558,7 @@ CREATE TABLE phpbb_posts (
|
||||||
KEY poster_ip (poster_ip),
|
KEY poster_ip (poster_ip),
|
||||||
KEY poster_id (poster_id),
|
KEY poster_id (poster_id),
|
||||||
KEY tid_post_time (topic_id, post_time),
|
KEY tid_post_time (topic_id, post_time),
|
||||||
KEY post_username (post_username:255),
|
KEY post_username (post_username(255)),
|
||||||
KEY post_visibility (post_visibility)
|
KEY post_visibility (post_visibility)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -406,6 +406,19 @@ CREATE TABLE phpbb_login_attempts (
|
||||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||||
|
|
||||||
|
|
||||||
|
# Table: 'phpbb_migrations'
|
||||||
|
CREATE TABLE phpbb_migrations (
|
||||||
|
migration_name varchar(255) DEFAULT '' NOT NULL,
|
||||||
|
migration_depends_on text NOT NULL,
|
||||||
|
migration_schema_done tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
|
migration_data_done tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
|
migration_data_state text NOT NULL,
|
||||||
|
migration_start_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
|
migration_end_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
|
PRIMARY KEY (migration_name)
|
||||||
|
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||||
|
|
||||||
|
|
||||||
# Table: 'phpbb_moderator_cache'
|
# Table: 'phpbb_moderator_cache'
|
||||||
CREATE TABLE phpbb_moderator_cache (
|
CREATE TABLE phpbb_moderator_cache (
|
||||||
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
|
@ -545,7 +558,7 @@ CREATE TABLE phpbb_posts (
|
||||||
KEY poster_ip (poster_ip),
|
KEY poster_ip (poster_ip),
|
||||||
KEY poster_id (poster_id),
|
KEY poster_id (poster_id),
|
||||||
KEY tid_post_time (topic_id, post_time),
|
KEY tid_post_time (topic_id, post_time),
|
||||||
KEY post_username (post_username:255),
|
KEY post_username (post_username),
|
||||||
KEY post_visibility (post_visibility)
|
KEY post_visibility (post_visibility)
|
||||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||||
|
|
||||||
|
|
|
@ -791,6 +791,22 @@ CREATE INDEX phpbb_login_attempts_att_time ON phpbb_login_attempts (attempt_time
|
||||||
CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts (user_id)
|
CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts (user_id)
|
||||||
/
|
/
|
||||||
|
|
||||||
|
/*
|
||||||
|
Table: 'phpbb_migrations'
|
||||||
|
*/
|
||||||
|
CREATE TABLE phpbb_migrations (
|
||||||
|
migration_name varchar2(255) DEFAULT '' ,
|
||||||
|
migration_depends_on clob DEFAULT '' ,
|
||||||
|
migration_schema_done number(1) DEFAULT '0' NOT NULL,
|
||||||
|
migration_data_done number(1) DEFAULT '0' NOT NULL,
|
||||||
|
migration_data_state clob DEFAULT '' ,
|
||||||
|
migration_start_time number(11) DEFAULT '0' NOT NULL,
|
||||||
|
migration_end_time number(11) DEFAULT '0' NOT NULL,
|
||||||
|
CONSTRAINT pk_phpbb_migrations PRIMARY KEY (migration_name)
|
||||||
|
)
|
||||||
|
/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Table: 'phpbb_moderator_cache'
|
Table: 'phpbb_moderator_cache'
|
||||||
*/
|
*/
|
||||||
|
@ -1026,7 +1042,7 @@ CREATE INDEX phpbb_posts_poster_id ON phpbb_posts (poster_id)
|
||||||
/
|
/
|
||||||
CREATE INDEX phpbb_posts_tid_post_time ON phpbb_posts (topic_id, post_time)
|
CREATE INDEX phpbb_posts_tid_post_time ON phpbb_posts (topic_id, post_time)
|
||||||
/
|
/
|
||||||
CREATE INDEX phpbb_posts_post_username ON phpbb_posts (post_username:255)
|
CREATE INDEX phpbb_posts_post_username ON phpbb_posts (post_username)
|
||||||
/
|
/
|
||||||
CREATE INDEX phpbb_posts_post_visibility ON phpbb_posts (post_visibility)
|
CREATE INDEX phpbb_posts_post_visibility ON phpbb_posts (post_visibility)
|
||||||
/
|
/
|
||||||
|
|
|
@ -568,6 +568,21 @@ CREATE INDEX phpbb_login_attempts_att_for ON phpbb_login_attempts (attempt_forwa
|
||||||
CREATE INDEX phpbb_login_attempts_att_time ON phpbb_login_attempts (attempt_time);
|
CREATE INDEX phpbb_login_attempts_att_time ON phpbb_login_attempts (attempt_time);
|
||||||
CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts (user_id);
|
CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts (user_id);
|
||||||
|
|
||||||
|
/*
|
||||||
|
Table: 'phpbb_migrations'
|
||||||
|
*/
|
||||||
|
CREATE TABLE phpbb_migrations (
|
||||||
|
migration_name varchar(255) DEFAULT '' NOT NULL,
|
||||||
|
migration_depends_on varchar(8000) DEFAULT '' NOT NULL,
|
||||||
|
migration_schema_done INT2 DEFAULT '0' NOT NULL CHECK (migration_schema_done >= 0),
|
||||||
|
migration_data_done INT2 DEFAULT '0' NOT NULL CHECK (migration_data_done >= 0),
|
||||||
|
migration_data_state varchar(8000) DEFAULT '' NOT NULL,
|
||||||
|
migration_start_time INT4 DEFAULT '0' NOT NULL CHECK (migration_start_time >= 0),
|
||||||
|
migration_end_time INT4 DEFAULT '0' NOT NULL CHECK (migration_end_time >= 0),
|
||||||
|
PRIMARY KEY (migration_name)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Table: 'phpbb_moderator_cache'
|
Table: 'phpbb_moderator_cache'
|
||||||
*/
|
*/
|
||||||
|
@ -735,7 +750,7 @@ CREATE INDEX phpbb_posts_topic_id ON phpbb_posts (topic_id);
|
||||||
CREATE INDEX phpbb_posts_poster_ip ON phpbb_posts (poster_ip);
|
CREATE INDEX phpbb_posts_poster_ip ON phpbb_posts (poster_ip);
|
||||||
CREATE INDEX phpbb_posts_poster_id ON phpbb_posts (poster_id);
|
CREATE INDEX phpbb_posts_poster_id ON phpbb_posts (poster_id);
|
||||||
CREATE INDEX phpbb_posts_tid_post_time ON phpbb_posts (topic_id, post_time);
|
CREATE INDEX phpbb_posts_tid_post_time ON phpbb_posts (topic_id, post_time);
|
||||||
CREATE INDEX phpbb_posts_post_username ON phpbb_posts (post_username:255);
|
CREATE INDEX phpbb_posts_post_username ON phpbb_posts (post_username);
|
||||||
CREATE INDEX phpbb_posts_post_visibility ON phpbb_posts (post_visibility);
|
CREATE INDEX phpbb_posts_post_visibility ON phpbb_posts (post_visibility);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -394,6 +394,19 @@ CREATE INDEX phpbb_login_attempts_att_for ON phpbb_login_attempts (attempt_forwa
|
||||||
CREATE INDEX phpbb_login_attempts_att_time ON phpbb_login_attempts (attempt_time);
|
CREATE INDEX phpbb_login_attempts_att_time ON phpbb_login_attempts (attempt_time);
|
||||||
CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts (user_id);
|
CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts (user_id);
|
||||||
|
|
||||||
|
# Table: 'phpbb_migrations'
|
||||||
|
CREATE TABLE phpbb_migrations (
|
||||||
|
migration_name varchar(255) NOT NULL DEFAULT '',
|
||||||
|
migration_depends_on text(65535) NOT NULL DEFAULT '',
|
||||||
|
migration_schema_done INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||||
|
migration_data_done INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||||
|
migration_data_state text(65535) NOT NULL DEFAULT '',
|
||||||
|
migration_start_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||||
|
migration_end_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (migration_name)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
# Table: 'phpbb_moderator_cache'
|
# Table: 'phpbb_moderator_cache'
|
||||||
CREATE TABLE phpbb_moderator_cache (
|
CREATE TABLE phpbb_moderator_cache (
|
||||||
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||||
|
@ -531,7 +544,7 @@ CREATE INDEX phpbb_posts_topic_id ON phpbb_posts (topic_id);
|
||||||
CREATE INDEX phpbb_posts_poster_ip ON phpbb_posts (poster_ip);
|
CREATE INDEX phpbb_posts_poster_ip ON phpbb_posts (poster_ip);
|
||||||
CREATE INDEX phpbb_posts_poster_id ON phpbb_posts (poster_id);
|
CREATE INDEX phpbb_posts_poster_id ON phpbb_posts (poster_id);
|
||||||
CREATE INDEX phpbb_posts_tid_post_time ON phpbb_posts (topic_id, post_time);
|
CREATE INDEX phpbb_posts_tid_post_time ON phpbb_posts (topic_id, post_time);
|
||||||
CREATE INDEX phpbb_posts_post_username ON phpbb_posts (post_username:255);
|
CREATE INDEX phpbb_posts_post_username ON phpbb_posts (post_username);
|
||||||
CREATE INDEX phpbb_posts_post_visibility ON phpbb_posts (post_visibility);
|
CREATE INDEX phpbb_posts_post_visibility ON phpbb_posts (post_visibility);
|
||||||
|
|
||||||
# Table: 'phpbb_privmsgs'
|
# Table: 'phpbb_privmsgs'
|
||||||
|
|
Loading…
Add table
Reference in a new issue