diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2006-03-25 12:07:13 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-03-25 12:07:13 +0000 |
| commit | 5de37a5c0a9665ef7170c247a842d9cd38e9e1d3 (patch) | |
| tree | 86fe422f5cf40ae9a669c8dca309e0e36ed214e7 /phpBB/install/schemas | |
| parent | 529aabd46d63b48041bde5d33fdb45bec63807cd (diff) | |
| download | forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.tar forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.tar.gz forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.tar.bz2 forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.tar.xz forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.zip | |
- extended session_page and user_lastpage to hold a maximum of 200 chars (instead of 100) - session_page gets truncated to 200 chars
- streamlined the process of generating text with bbcode/smilies/urls (forum rules, forum descriptions, group descriptions at the moment)
- a bunch of schema changes for the bbcode-enabled text and the session page change (sorry for this)
- if decode_message is used there is no need to include functions_posting.php anymore (should fix the search.php bug too)
git-svn-id: file:///svn/phpbb/trunk@5709 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/schemas')
| -rw-r--r-- | phpBB/install/schemas/firebird_schema.sql | 15 | ||||
| -rw-r--r-- | phpBB/install/schemas/mssql_schema.sql | 20 | ||||
| -rw-r--r-- | phpBB/install/schemas/mysql_schema.sql | 15 | ||||
| -rw-r--r-- | phpBB/install/schemas/oracle_schema.sql | 15 | ||||
| -rw-r--r-- | phpBB/install/schemas/postgres_schema.sql | 20 | ||||
| -rw-r--r-- | phpBB/install/schemas/schema_data.sql | 20 | ||||
| -rw-r--r-- | phpBB/install/schemas/sqlite_schema.sql | 15 |
7 files changed, 70 insertions, 50 deletions
diff --git a/phpBB/install/schemas/firebird_schema.sql b/phpBB/install/schemas/firebird_schema.sql index dfa2495282..54ec5f5ced 100644 --- a/phpBB/install/schemas/firebird_schema.sql +++ b/phpBB/install/schemas/firebird_schema.sql @@ -181,15 +181,16 @@ CREATE TABLE phpbb_forums ( forum_parents BLOB SUB_TYPE TEXT, forum_name VARCHAR(150) NOT NULL, forum_desc BLOB SUB_TYPE TEXT, + forum_desc_bitfield INTEGER DEFAULT 0 NOT NULL, + forum_desc_uid VARCHAR(5) NOT NULL, forum_link VARCHAR(200) NOT NULL, forum_password VARCHAR(32) NOT NULL, forum_style INTEGER, forum_image VARCHAR(50) NOT NULL, forum_rules BLOB SUB_TYPE TEXT NOT NULL, forum_rules_link VARCHAR(200) NOT NULL, - forum_rules_flags INTEGER DEFAULT 0 NOT NULL, - forum_rules_bbcode_bitfield INTEGER DEFAULT 0 NOT NULL, - forum_rules_bbcode_uid VARCHAR(5) NOT NULL, + forum_rules_bitfield INTEGER DEFAULT 0 NOT NULL, + forum_rules_uid VARCHAR(5) NOT NULL, forum_topics_per_page INTEGER DEFAULT 0 NOT NULL, forum_type INTEGER DEFAULT 0 NOT NULL, forum_status INTEGER DEFAULT 0 NOT NULL, @@ -230,6 +231,9 @@ CREATE TABLE phpbb_groups ( group_id INTEGER NOT NULL, group_type INTEGER DEFAULT 1 NOT NULL, group_name VARCHAR(40) NOT NULL, + group_desc BLOB SUB_TYPE TEXT, + group_desc_bitfield INTEGER DEFAULT 0 NOT NULL, + group_desc_uid VARCHAR(5) NOT NULL, group_display INTEGER DEFAULT 0 NOT NULL, group_avatar VARCHAR(100) NOT NULL, group_avatar_type INTEGER DEFAULT 0 NOT NULL, @@ -241,7 +245,6 @@ CREATE TABLE phpbb_groups ( group_receive_pm INTEGER DEFAULT 0 NOT NULL, group_message_limit INTEGER DEFAULT 0 NOT NULL, group_chgpass INTEGER DEFAULT 0 NOT NULL, - group_description VARCHAR(255) NOT NULL, group_legend INTEGER DEFAULT 1 NOT NULL );; @@ -515,7 +518,7 @@ CREATE TABLE phpbb_sessions ( session_time INTEGER DEFAULT 0 NOT NULL, session_ip VARCHAR(40) DEFAULT '0' NOT NULL, session_browser VARCHAR(150), - session_page VARCHAR(100) NOT NULL, + session_page VARCHAR(200) NOT NULL, session_viewonline INTEGER DEFAULT 1 NOT NULL, session_admin INTEGER DEFAULT 0 NOT NULL );; @@ -756,7 +759,7 @@ CREATE TABLE phpbb_users ( user_lastvisit INTEGER DEFAULT 0 NOT NULL, user_lastmark INTEGER DEFAULT 0 NOT NULL, user_lastpost_time INTEGER DEFAULT 0 NOT NULL, - user_lastpage VARCHAR(100) NOT NULL, + user_lastpage VARCHAR(200) NOT NULL, user_last_confirm_key VARCHAR(10) NOT NULL, user_warnings INTEGER DEFAULT 0 NOT NULL, user_last_warning INTEGER DEFAULT 0 NOT NULL, diff --git a/phpBB/install/schemas/mssql_schema.sql b/phpBB/install/schemas/mssql_schema.sql index bd6e6b59af..95afdc50e7 100644 --- a/phpBB/install/schemas/mssql_schema.sql +++ b/phpBB/install/schemas/mssql_schema.sql @@ -187,15 +187,16 @@ CREATE TABLE [phpbb_forums] ( [forum_parents] [text] NULL , [forum_name] [varchar] (150) NOT NULL , [forum_desc] [text] NULL , + [forum_desc_bitfield] [int] NOT NULL , + [forum_desc_uid] [varchar] (5) NOT NULL , [forum_link] [varchar] (200) NOT NULL , [forum_password] [varchar] (32) NOT NULL , [forum_style] [int] NULL , [forum_image] [varchar] (50) NOT NULL , [forum_rules] [text] NOT NULL , [forum_rules_link] [varchar] (200) NOT NULL , - [forum_rules_flags] [int] NOT NULL , - [forum_rules_bbcode_bitfield] [int] NOT NULL , - [forum_rules_bbcode_uid] [varchar] (5) NOT NULL , + [forum_rules_bitfield] [int] NOT NULL , + [forum_rules_uid] [varchar] (5) NOT NULL , [forum_topics_per_page] [int] NOT NULL , [forum_type] [int] NOT NULL , [forum_status] [int] NOT NULL , @@ -236,6 +237,9 @@ CREATE TABLE [phpbb_groups] ( [group_id] [int] IDENTITY (1, 1) NOT NULL , [group_type] [int] NOT NULL , [group_name] [varchar] (40) NOT NULL , + [group_desc] [text] NULL , + [group_desc_bitfield] [int] NOT NULL , + [group_desc_uid] [varchar] (5) NOT NULL , [group_display] [int] NOT NULL , [group_avatar] [varchar] (100) NOT NULL , [group_avatar_type] [int] NOT NULL , @@ -247,7 +251,6 @@ CREATE TABLE [phpbb_groups] ( [group_receive_pm] [int] NOT NULL , [group_message_limit] [int] NOT NULL , [group_chgpass] [int] NOT NULL , - [group_description] [varchar] (255) NOT NULL , [group_legend] [int] NOT NULL ) ON [PRIMARY] GO @@ -521,7 +524,7 @@ CREATE TABLE [phpbb_sessions] ( [session_time] [int] NOT NULL , [session_ip] [varchar] (40) NOT NULL , [session_browser] [varchar] (150) NULL , - [session_page] [varchar] (100) NOT NULL , + [session_page] [varchar] (200) NOT NULL , [session_viewonline] [int] NOT NULL , [session_admin] [int] NOT NULL ) ON [PRIMARY] @@ -762,7 +765,7 @@ CREATE TABLE [phpbb_users] ( [user_lastvisit] [int] NOT NULL , [user_lastmark] [int] NOT NULL , [user_lastpost_time] [int] NOT NULL , - [user_lastpage] [varchar] (100) NOT NULL , + [user_lastpage] [varchar] (200) NOT NULL , [user_last_confirm_key] [varchar] (10) NOT NULL , [user_warnings] [int] NOT NULL , [user_last_warning] [int] NOT NULL , @@ -1299,8 +1302,8 @@ ALTER TABLE [phpbb_forums] WITH NOCHECK ADD CONSTRAINT [DF_forums_parent_id] DEFAULT (0) FOR [parent_id], CONSTRAINT [DF_forums_left_id] DEFAULT (0) FOR [left_id], CONSTRAINT [DF_forums_right_id] DEFAULT (0) FOR [right_id], - CONSTRAINT [DF_forums_rules_flags] DEFAULT (0) FOR [forum_rules_flags], - CONSTRAINT [DF_forums_rules_bbcode_bitfiel] DEFAULT (0) FOR [forum_rules_bbcode_bitfield], + CONSTRAINT [DF_forums_desc_bitfield] DEFAULT (0) FOR [forum_desc_bitfield], + CONSTRAINT [DF_forums_rules_bitfield] DEFAULT (0) FOR [forum_rules_bitfield], CONSTRAINT [DF_forums_topics_per_page] DEFAULT (0) FOR [forum_topics_per_page], CONSTRAINT [DF_forums_forum_type] DEFAULT (0) FOR [forum_type], CONSTRAINT [DF_forums_forum_status] DEFAULT (0) FOR [forum_status], @@ -1335,6 +1338,7 @@ GO ALTER TABLE [phpbb_groups] WITH NOCHECK ADD CONSTRAINT [DF_groups_group_type] DEFAULT (1) FOR [group_type], CONSTRAINT [DF_groups_group_display] DEFAULT (0) FOR [group_display], + CONSTRAINT [DF_groups_group_desc_bitfield] DEFAULT (0) FOR [group_desc_bitfield], CONSTRAINT [DF_groups_group_avatar_type] DEFAULT (0) FOR [group_avatar_type], CONSTRAINT [DF_groups_group_avatar_width] DEFAULT (0) FOR [group_avatar_width], CONSTRAINT [DF_groups_group_avatar_height] DEFAULT (0) FOR [group_avatar_height], diff --git a/phpBB/install/schemas/mysql_schema.sql b/phpBB/install/schemas/mysql_schema.sql index be12faa9ab..54776af947 100644 --- a/phpBB/install/schemas/mysql_schema.sql +++ b/phpBB/install/schemas/mysql_schema.sql @@ -207,15 +207,16 @@ CREATE TABLE phpbb_forums ( forum_parents text, forum_name varchar(150) NOT NULL, forum_desc text, + forum_desc_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL, + forum_desc_uid varchar(5) DEFAULT '' NOT NULL, forum_link varchar(200) DEFAULT '' NOT NULL, forum_password varchar(32) DEFAULT '' NOT NULL, forum_style tinyint(4) UNSIGNED, forum_image varchar(50) DEFAULT '' NOT NULL, forum_rules text DEFAULT '' NOT NULL, forum_rules_link varchar(200) DEFAULT '' NOT NULL, - forum_rules_flags tinyint(4) UNSIGNED DEFAULT '0' NOT NULL, - forum_rules_bbcode_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL, - forum_rules_bbcode_uid varchar(5) DEFAULT '' NOT NULL, + forum_rules_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL, + forum_rules_uid varchar(5) DEFAULT '' NOT NULL, forum_topics_per_page tinyint(4) UNSIGNED DEFAULT '0' NOT NULL, forum_type tinyint(4) DEFAULT '0' NOT NULL, forum_status tinyint(4) DEFAULT '0' NOT NULL, @@ -271,6 +272,9 @@ CREATE TABLE phpbb_groups ( group_id mediumint(8) NOT NULL auto_increment, group_type tinyint(4) DEFAULT '1' NOT NULL, group_name varchar(40) DEFAULT '' NOT NULL, + group_desc text, + group_desc_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL, + group_desc_uid varchar(5) DEFAULT '' NOT NULL, group_display tinyint(1) DEFAULT '0' NOT NULL, group_avatar varchar(100) DEFAULT '' NOT NULL, group_avatar_type tinyint(4) DEFAULT '0' NOT NULL, @@ -282,7 +286,6 @@ CREATE TABLE phpbb_groups ( group_receive_pm tinyint(1) DEFAULT '0' NOT NULL, group_message_limit mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, group_chgpass smallint(6) DEFAULT '0' NOT NULL, - group_description varchar(255) DEFAULT '' NOT NULL, group_legend tinyint(1) DEFAULT '1' NOT NULL, PRIMARY KEY (group_id), KEY group_legend (group_legend) @@ -606,7 +609,7 @@ CREATE TABLE phpbb_sessions ( session_time int(11) DEFAULT '0' NOT NULL, session_ip varchar(40) DEFAULT '0' NOT NULL, session_browser varchar(150) DEFAULT '' NOT NULL, - session_page varchar(100) DEFAULT '' NOT NULL, + session_page varchar(200) DEFAULT '' NOT NULL, session_viewonline tinyint(1) DEFAULT '1' NOT NULL, session_admin tinyint(1) DEFAULT '0' NOT NULL, PRIMARY KEY (session_id), @@ -880,7 +883,7 @@ CREATE TABLE phpbb_users ( user_lastvisit int(11) DEFAULT '0' NOT NULL, user_lastmark int(11) DEFAULT '0' NOT NULL, user_lastpost_time int(11) DEFAULT '0' NOT NULL, - user_lastpage varchar(100) DEFAULT '' NOT NULL, + user_lastpage varchar(200) DEFAULT '' NOT NULL, user_last_confirm_key varchar(10) DEFAULT '' NOT NULL, user_warnings tinyint(4) DEFAULT '0' NOT NULL, user_last_warning int(11) DEFAULT '0' NOT NULL, diff --git a/phpBB/install/schemas/oracle_schema.sql b/phpBB/install/schemas/oracle_schema.sql index a181532783..928c22c0aa 100644 --- a/phpBB/install/schemas/oracle_schema.sql +++ b/phpBB/install/schemas/oracle_schema.sql @@ -458,15 +458,16 @@ CREATE TABLE phpbb_forums ( forum_parents clob, forum_name varchar2(150), forum_desc clob, + forum_desc_bitfield number(11) DEFAULT '0' NOT NULL, + forum_desc_uid varchar2(5) DEFAULT '', forum_link varchar2(200) DEFAULT '', forum_password varchar2(32) DEFAULT '', forum_style number(4), forum_image varchar2(50) DEFAULT '', forum_rules clob DEFAULT '', forum_rules_link varchar2(200) DEFAULT '', - forum_rules_flags number(4) DEFAULT '0' NOT NULL, - forum_rules_bbcode_bitfield number(11) DEFAULT '0' NOT NULL, - forum_rules_bbcode_uid varchar2(5) DEFAULT '', + forum_rules_bitfield number(11) DEFAULT '0' NOT NULL, + forum_rules_uid varchar2(5) DEFAULT '', forum_topics_per_page number(4) DEFAULT '0' NOT NULL, forum_type number(4) DEFAULT '0' NOT NULL, forum_status number(4) DEFAULT '0' NOT NULL, @@ -556,6 +557,9 @@ CREATE TABLE phpbb_groups ( group_id number(8) NOT NULL, group_type number(4) DEFAULT '1' NOT NULL, group_name varchar2(40) DEFAULT '', + group_desc clob, + group_desc_bitfield number(11) DEFAULT '0' NOT NULL, + group_desc_uid varchar2(5) DEFAULT '', group_display number(1) DEFAULT '0' NOT NULL, group_avatar varchar2(100) DEFAULT '', group_avatar_type number(4) DEFAULT '0' NOT NULL, @@ -567,7 +571,6 @@ CREATE TABLE phpbb_groups ( group_receive_pm number(1) DEFAULT '0' NOT NULL, group_message_limit number(8) DEFAULT '0' NOT NULL, group_chgpass number(6) DEFAULT '0' NOT NULL, - group_description varchar2(255) DEFAULT '', group_legend number(1) DEFAULT '1' NOT NULL, CONSTRAINT pk_phpbb_groups PRIMARY KEY (group_id) ) @@ -1215,7 +1218,7 @@ CREATE TABLE phpbb_sessions ( session_time number(11) DEFAULT '0' NOT NULL, session_ip varchar2(40) DEFAULT '0', session_browser varchar2(150) DEFAULT '', - session_page varchar2(100) DEFAULT '', + session_page varchar2(200) DEFAULT '', session_viewonline number(1) DEFAULT '1' NOT NULL, session_admin number(1) DEFAULT '0' NOT NULL, CONSTRAINT pk_phpbb_sessions PRIMARY KEY (session_id) @@ -1662,7 +1665,7 @@ CREATE TABLE phpbb_users ( user_lastvisit number(11) DEFAULT '0' NOT NULL, user_lastmark number(11) DEFAULT '0' NOT NULL, user_lastpost_time number(11) DEFAULT '0' NOT NULL, - user_lastpage varchar2(100) DEFAULT '', + user_lastpage varchar2(200) DEFAULT '', user_last_confirm_key varchar2(10) DEFAULT '', user_warnings number(4) DEFAULT '0' NOT NULL, user_last_warning number(11) DEFAULT '0' NOT NULL, diff --git a/phpBB/install/schemas/postgres_schema.sql b/phpBB/install/schemas/postgres_schema.sql index f695ab8be6..4d956b5df0 100644 --- a/phpBB/install/schemas/postgres_schema.sql +++ b/phpBB/install/schemas/postgres_schema.sql @@ -275,15 +275,16 @@ CREATE TABLE phpbb_forums ( forum_parents text, forum_name varchar(150) NOT NULL, forum_desc text, + forum_desc_bitfield INT4 DEFAULT '0' NOT NULL, + forum_desc_uid varchar(5) DEFAULT '' NOT NULL, forum_link varchar(200) DEFAULT '' NOT NULL, forum_password varchar(32) DEFAULT '' NOT NULL, forum_style INT2 , forum_image varchar(50) DEFAULT '' NOT NULL, forum_rules text DEFAULT '' NOT NULL, forum_rules_link varchar(200) DEFAULT '' NOT NULL, - forum_rules_flags INT2 DEFAULT '0' NOT NULL, - forum_rules_bbcode_bitfield INT4 DEFAULT '0' NOT NULL, - forum_rules_bbcode_uid varchar(5) DEFAULT '' NOT NULL, + forum_rules_bitfield INT4 DEFAULT '0' NOT NULL, + forum_rules_uid varchar(5) DEFAULT '' NOT NULL, forum_topics_per_page INT2 DEFAULT '0' NOT NULL, forum_type INT2 DEFAULT '0' NOT NULL, forum_status INT2 DEFAULT '0' NOT NULL, @@ -308,8 +309,8 @@ CREATE TABLE phpbb_forums ( CHECK (left_id>=0), CHECK (right_id>=0), CHECK (forum_style>=0), - CHECK (forum_rules_flags>=0), - CHECK (forum_rules_bbcode_bitfield>=0), + CHECK (forum_desc_bitfield>=0), + CHECK (forum_rules_bitfield>=0), CHECK (forum_topics_per_page>=0), CHECK (forum_posts>=0), CHECK (forum_topics>=0), @@ -364,6 +365,9 @@ CREATE TABLE phpbb_groups ( group_id INT4 DEFAULT nextval('phpbb_groups_group_id_seq'), group_type INT2 DEFAULT '1' NOT NULL, group_name varchar(40) DEFAULT '' NOT NULL, + group_desc text, + group_desc_bitfield INT4 DEFAULT '0' NOT NULL, + group_desc_uid varchar(5) DEFAULT '' NOT NULL, group_display INT2 DEFAULT '0' NOT NULL, group_avatar varchar(100) DEFAULT '' NOT NULL, group_avatar_type INT2 DEFAULT '0' NOT NULL, @@ -375,11 +379,11 @@ CREATE TABLE phpbb_groups ( group_receive_pm INT2 DEFAULT '0' NOT NULL, group_message_limit INT4 DEFAULT '0' NOT NULL, group_chgpass INT2 DEFAULT '0' NOT NULL, - group_description varchar(255) DEFAULT '' NOT NULL, group_legend INT2 DEFAULT '1' NOT NULL, PRIMARY KEY (group_id), CHECK (group_avatar_width>=0), CHECK (group_avatar_height>=0), + CHECK (group_desc_bitfield>=0), CHECK (group_sig_chars>=0), CHECK (group_message_limit>=0) ); @@ -822,7 +826,7 @@ CREATE TABLE phpbb_sessions ( session_time INT4 DEFAULT '0' NOT NULL, session_ip varchar(40) DEFAULT '0' NOT NULL, session_browser varchar(150) DEFAULT '' NULL, - session_page varchar(100) DEFAULT '' NOT NULL, + session_page varchar(200) DEFAULT '' NOT NULL, session_viewonline INT2 DEFAULT '1' NOT NULL, session_admin INT2 DEFAULT '0' NOT NULL, PRIMARY KEY (session_id), @@ -1165,7 +1169,7 @@ CREATE TABLE phpbb_users ( user_lastvisit INT4 DEFAULT '0' NOT NULL, user_lastmark INT4 DEFAULT '0' NOT NULL, user_lastpost_time INT4 DEFAULT '0' NOT NULL, - user_lastpage varchar(100) DEFAULT '' NOT NULL, + user_lastpage varchar(200) DEFAULT '' NOT NULL, user_last_confirm_key varchar(10) DEFAULT '' NOT NULL, user_warnings INT2 DEFAULT '0' NOT NULL, user_last_warning INT4 DEFAULT '0' NOT NULL, diff --git a/phpBB/install/schemas/schema_data.sql b/phpBB/install/schemas/schema_data.sql index 00db91bd2e..4416e73907 100644 --- a/phpBB/install/schemas/schema_data.sql +++ b/phpBB/install/schemas/schema_data.sql @@ -379,9 +379,9 @@ INSERT INTO phpbb_lang (lang_id, lang_iso, lang_dir, lang_english_name, lang_loc # MSSQL IDENTITY phpbb_forums ON # # -- Forums -INSERT INTO phpbb_forums (forum_id, forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_bbcode_uid, prune_days, prune_viewed) VALUES (1, 'My first Category', '', 1, 4, 0, 0, 1, 1, 1, 1, 2, 'Admin', 972086460, '', '', '', '', '', '', 0, 0); +INSERT INTO phpbb_forums (forum_id, forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_uid, forum_desc_uid, prune_days, prune_viewed) VALUES (1, 'My first Category', '', 1, 4, 0, 0, 1, 1, 1, 1, 2, 'Admin', 972086460, '', '', '', '', '', '', '', 0, 0); -INSERT INTO phpbb_forums (forum_id, forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_bbcode_uid, prune_days, prune_viewed) VALUES (2, 'Test Forum 1', 'This is just a test forum.', 2, 3, 1, 1, 1, 1, 1, 1, 2, 'Admin', 972086460, '', '', '', '', '', '', 0, 0); +INSERT INTO phpbb_forums (forum_id, forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_uid, forum_desc_uid, prune_days, prune_viewed) VALUES (2, 'Test Forum 1', 'This is just a test forum.', 2, 3, 1, 1, 1, 1, 1, 1, 2, 'Admin', 972086460, '', '', '', '', '', '', '', 0, 0); # MSSQL IDENTITY phpbb_forums OFF # @@ -406,14 +406,14 @@ INSERT INTO phpbb_users (user_id, user_type, group_id, username, user_regdate, u # MSSQL IDENTITY phpbb_groups ON # # -- Groups -INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_description) VALUES (1, 'GUESTS', 3, '', 0, '', ''); -INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_description) VALUES (2, 'INACTIVE', 3, '', 0, '', ''); -INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_description) VALUES (3, 'INACTIVE_COPPA', 3, '', 0, '', ''); -INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_description) VALUES (4, 'REGISTERED', 3, '', 0, '', ''); -INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_description) VALUES (5, 'REGISTERED_COPPA', 3, '', 0, '', ''); -INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_description) VALUES (6, 'SUPER_MODERATORS', 3, '00AA00', 0, '', ''); -INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_description) VALUES (7, 'ADMINISTRATORS', 3, 'AA0000', 1, '', ''); -INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_description) VALUES (8, 'BOTS', 3, '9E8DA7', 1, '', ''); +INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_desc, group_desc_uid) VALUES (1, 'GUESTS', 3, '', 0, '', '', ''); +INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_desc, group_desc_uid) VALUES (2, 'INACTIVE', 3, '', 0, '', '', ''); +INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_desc, group_desc_uid) VALUES (3, 'INACTIVE_COPPA', 3, '', 0, '', '', ''); +INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_desc, group_desc_uid) VALUES (4, 'REGISTERED', 3, '', 0, '', '', ''); +INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_desc, group_desc_uid) VALUES (5, 'REGISTERED_COPPA', 3, '', 0, '', '', ''); +INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_desc, group_desc_uid) VALUES (6, 'SUPER_MODERATORS', 3, '00AA00', 0, '', '', ''); +INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_desc, group_desc_uid) VALUES (7, 'ADMINISTRATORS', 3, 'AA0000', 1, '', '', ''); +INSERT INTO phpbb_groups (group_id, group_name, group_type, group_colour, group_legend, group_avatar, group_desc, group_desc_uid) VALUES (8, 'BOTS', 3, '9E8DA7', 1, '', '', ''); # MSSQL IDENTITY phpbb_groups OFF # diff --git a/phpBB/install/schemas/sqlite_schema.sql b/phpBB/install/schemas/sqlite_schema.sql index 39f12d16a7..366e42305c 100644 --- a/phpBB/install/schemas/sqlite_schema.sql +++ b/phpBB/install/schemas/sqlite_schema.sql @@ -209,15 +209,16 @@ CREATE TABLE phpbb_forums ( forum_parents text(65535), forum_name varchar(150) NOT NULL, forum_desc text(65535), + forum_desc_bitfield int(11) NOT NULL DEFAULT '0', + forum_desc_uid varchar(5) NOT NULL DEFAULT '', forum_link varchar(200) NOT NULL DEFAULT '', forum_password varchar(32) NOT NULL DEFAULT '', forum_style tinyint(4), forum_image varchar(50) NOT NULL DEFAULT '', forum_rules text(65535) NOT NULL DEFAULT '', forum_rules_link varchar(200) NOT NULL DEFAULT '', - forum_rules_flags tinyint(4) NOT NULL DEFAULT '0', - forum_rules_bbcode_bitfield int(11) NOT NULL DEFAULT '0', - forum_rules_bbcode_uid varchar(5) NOT NULL DEFAULT '', + forum_rules_bitfield int(11) NOT NULL DEFAULT '0', + forum_rules_uid varchar(5) NOT NULL DEFAULT '', forum_topics_per_page tinyint(4) NOT NULL DEFAULT '0', forum_type tinyint(4) NOT NULL DEFAULT '0', forum_status tinyint(4) NOT NULL DEFAULT '0', @@ -274,6 +275,9 @@ CREATE TABLE phpbb_groups ( group_id INTEGER PRIMARY KEY NOT NULL, group_type tinyint(4) NOT NULL DEFAULT '1', group_name varchar(40) NOT NULL DEFAULT '', + group_desc text(65535), + group_desc_bitfield int(11) NOT NULL DEFAULT '0', + group_desc_uid varchar(5) NOT NULL DEFAULT '', group_display tinyint(1) NOT NULL DEFAULT '0', group_avatar varchar(100) NOT NULL DEFAULT '', group_avatar_type tinyint(4) NOT NULL DEFAULT '0', @@ -285,7 +289,6 @@ CREATE TABLE phpbb_groups ( group_receive_pm tinyint(1) NOT NULL DEFAULT '0', group_message_limit mediumint(8) NOT NULL DEFAULT '0', group_chgpass smallint(6) NOT NULL DEFAULT '0', - group_description varchar(255) NOT NULL DEFAULT '', group_legend tinyint(1) NOT NULL DEFAULT '1' ); @@ -608,7 +611,7 @@ CREATE TABLE phpbb_sessions ( session_time int(11) NOT NULL DEFAULT '0', session_ip varchar(40) NOT NULL DEFAULT '0', session_browser varchar(150) NOT NULL DEFAULT '', - session_page varchar(100) NOT NULL DEFAULT '', + session_page varchar(200) NOT NULL DEFAULT '', session_viewonline tinyint(1) NOT NULL DEFAULT '1', session_admin tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (session_id) @@ -884,7 +887,7 @@ CREATE TABLE phpbb_users ( user_lastvisit int(11) NOT NULL DEFAULT '0', user_lastmark int(11) NOT NULL DEFAULT '0', user_lastpost_time int(11) NOT NULL DEFAULT '0', - user_lastpage varchar(100) NOT NULL DEFAULT '', + user_lastpage varchar(200) NOT NULL DEFAULT '', user_last_confirm_key varchar(10) NOT NULL DEFAULT '', user_warnings tinyint(4) NOT NULL DEFAULT '0', user_last_warning int(11) NOT NULL DEFAULT '0', |
