diff options
Diffstat (limited to 'phpBB/install/schemas/mysql_40_schema.sql')
| -rw-r--r-- | phpBB/install/schemas/mysql_40_schema.sql | 98 | 
1 files changed, 22 insertions, 76 deletions
| diff --git a/phpBB/install/schemas/mysql_40_schema.sql b/phpBB/install/schemas/mysql_40_schema.sql index 969cbe0472..8aab949103 100644 --- a/phpBB/install/schemas/mysql_40_schema.sql +++ b/phpBB/install/schemas/mysql_40_schema.sql @@ -192,6 +192,15 @@ CREATE TABLE phpbb_drafts (  ); +# Table: 'phpbb_ext' +CREATE TABLE phpbb_ext ( +	ext_name varbinary(255) DEFAULT '' NOT NULL, +	ext_active tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, +	ext_state blob NOT NULL, +	UNIQUE ext_name (ext_name) +); + +  # Table: 'phpbb_extensions'  CREATE TABLE phpbb_extensions (  	extension_id mediumint(8) UNSIGNED NOT NULL auto_increment, @@ -317,7 +326,8 @@ CREATE TABLE phpbb_groups (  	group_receive_pm tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,  	group_message_limit mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,  	group_max_recipients mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, -	group_legend tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, +	group_legend mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, +	group_teampage mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,  	PRIMARY KEY (group_id),  	KEY group_legend_name (group_legend, group_name(255))  ); @@ -363,6 +373,7 @@ CREATE TABLE phpbb_log (  	log_data mediumblob NOT NULL,  	PRIMARY KEY (log_id),  	KEY log_type (log_type), +	KEY log_time (log_time),  	KEY forum_id (forum_id),  	KEY topic_id (topic_id),  	KEY reportee_id (reportee_id), @@ -573,6 +584,7 @@ CREATE TABLE phpbb_profile_fields (  	field_required tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,  	field_show_novalue tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,  	field_show_on_reg tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, +	field_show_on_pm tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,  	field_show_on_vt tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,  	field_show_profile tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,  	field_hide tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, @@ -636,6 +648,9 @@ CREATE TABLE phpbb_reports (  	report_closed tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,  	report_time int(11) UNSIGNED DEFAULT '0' NOT NULL,  	report_text mediumblob NOT NULL, +	reported_post_text mediumblob NOT NULL, +	reported_post_bitfield varbinary(255) DEFAULT '' NOT NULL, +	reported_post_uid varbinary(8) DEFAULT '' NOT NULL,  	PRIMARY KEY (report_id),  	KEY post_id (post_id),  	KEY pm_id (pm_id) @@ -749,80 +764,12 @@ CREATE TABLE phpbb_styles (  	style_name blob NOT NULL,  	style_copyright blob NOT NULL,  	style_active tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, -	template_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, -	theme_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, -	imageset_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, -	PRIMARY KEY (style_id), -	UNIQUE style_name (style_name(255)), -	KEY template_id (template_id), -	KEY theme_id (theme_id), -	KEY imageset_id (imageset_id) -); - - -# Table: 'phpbb_styles_template' -CREATE TABLE phpbb_styles_template ( -	template_id mediumint(8) UNSIGNED NOT NULL auto_increment, -	template_name blob NOT NULL, -	template_copyright blob NOT NULL, -	template_path varbinary(100) DEFAULT '' NOT NULL, +	style_path varbinary(100) DEFAULT '' NOT NULL,  	bbcode_bitfield varbinary(255) DEFAULT 'kNg=' NOT NULL, -	template_storedb tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, -	template_inherits_id int(4) UNSIGNED DEFAULT '0' NOT NULL, -	template_inherit_path varbinary(255) DEFAULT '' NOT NULL, -	PRIMARY KEY (template_id), -	UNIQUE tmplte_nm (template_name(255)) -); - - -# Table: 'phpbb_styles_template_data' -CREATE TABLE phpbb_styles_template_data ( -	template_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, -	template_filename varbinary(100) DEFAULT '' NOT NULL, -	template_included blob NOT NULL, -	template_mtime int(11) UNSIGNED DEFAULT '0' NOT NULL, -	template_data mediumblob NOT NULL, -	KEY tid (template_id), -	KEY tfn (template_filename) -); - - -# Table: 'phpbb_styles_theme' -CREATE TABLE phpbb_styles_theme ( -	theme_id mediumint(8) UNSIGNED NOT NULL auto_increment, -	theme_name blob NOT NULL, -	theme_copyright blob NOT NULL, -	theme_path varbinary(100) DEFAULT '' NOT NULL, -	theme_storedb tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, -	theme_mtime int(11) UNSIGNED DEFAULT '0' NOT NULL, -	theme_data mediumblob NOT NULL, -	PRIMARY KEY (theme_id), -	UNIQUE theme_name (theme_name(255)) -); - - -# Table: 'phpbb_styles_imageset' -CREATE TABLE phpbb_styles_imageset ( -	imageset_id mediumint(8) UNSIGNED NOT NULL auto_increment, -	imageset_name blob NOT NULL, -	imageset_copyright blob NOT NULL, -	imageset_path varbinary(100) DEFAULT '' NOT NULL, -	PRIMARY KEY (imageset_id), -	UNIQUE imgset_nm (imageset_name(255)) -); - - -# Table: 'phpbb_styles_imageset_data' -CREATE TABLE phpbb_styles_imageset_data ( -	image_id mediumint(8) UNSIGNED NOT NULL auto_increment, -	image_name varbinary(200) DEFAULT '' NOT NULL, -	image_filename varbinary(200) DEFAULT '' NOT NULL, -	image_lang varbinary(30) DEFAULT '' NOT NULL, -	image_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL, -	image_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL, -	imageset_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, -	PRIMARY KEY (image_id), -	KEY i_d (imageset_id) +	style_parent_id int(4) UNSIGNED DEFAULT '0' NOT NULL, +	style_parent_tree blob NOT NULL, +	PRIMARY KEY (style_id), +	UNIQUE style_name (style_name(255))  ); @@ -946,8 +893,7 @@ CREATE TABLE phpbb_users (  	user_inactive_time int(11) UNSIGNED DEFAULT '0' NOT NULL,  	user_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,  	user_lang varbinary(30) DEFAULT '' NOT NULL, -	user_timezone decimal(5,2) DEFAULT '0' NOT NULL, -	user_dst tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, +	user_timezone varbinary(100) DEFAULT 'UTC' NOT NULL,  	user_dateformat varbinary(90) DEFAULT 'd M Y H:i' NOT NULL,  	user_style mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,  	user_rank mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, | 
