mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
so.... what does this thing do?
well, the super fast, ultra efficient, massively huge BBCode handling system was implemented differently on each DBMS. Although this provided the best performance, the solution was a bit hacky. So what does this new thing do? We use base64 encoding to make everything nice and shiny, it turns into nice, safe characters that we can just jam into varchars on essentially any database. This has two implications: we must decode every bitfield we get AND we have slightly fewer IDs to work with. It goes down from 2040 BBCodes to 1512. We lose like a quarter of them :P P.S. I hope nothing broke :P git-svn-id: file:///svn/phpbb/trunk@6263 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -354,7 +354,7 @@ CREATE TABLE phpbb_forums (
|
||||
forum_parents TEXT DEFAULT '' NOT NULL,
|
||||
forum_name varchar(3000) DEFAULT '' NOT NULL,
|
||||
forum_desc varchar(8000) DEFAULT '' NOT NULL,
|
||||
forum_desc_bitfield bytea DEFAULT '\000' NOT NULL,
|
||||
forum_desc_bitfield varchar(252) DEFAULT '' NOT NULL,
|
||||
forum_desc_options INT4 DEFAULT '0' NOT NULL CHECK (forum_desc_options >= 0),
|
||||
forum_desc_uid varchar(5) DEFAULT '' NOT NULL,
|
||||
forum_link varchar(255) DEFAULT '' NOT NULL,
|
||||
@@ -363,7 +363,7 @@ CREATE TABLE phpbb_forums (
|
||||
forum_image varchar(255) DEFAULT '' NOT NULL,
|
||||
forum_rules varchar(8000) DEFAULT '' NOT NULL,
|
||||
forum_rules_link varchar(255) DEFAULT '' NOT NULL,
|
||||
forum_rules_bitfield bytea DEFAULT '\000' NOT NULL,
|
||||
forum_rules_bitfield varchar(252) DEFAULT '' NOT NULL,
|
||||
forum_rules_options INT4 DEFAULT '0' NOT NULL CHECK (forum_rules_options >= 0),
|
||||
forum_rules_uid varchar(5) DEFAULT '' NOT NULL,
|
||||
forum_topics_per_page INT2 DEFAULT '0' NOT NULL,
|
||||
@@ -436,7 +436,7 @@ CREATE TABLE phpbb_groups (
|
||||
group_type INT2 DEFAULT '1' NOT NULL,
|
||||
group_name varchar_ci DEFAULT '' NOT NULL,
|
||||
group_desc varchar(8000) DEFAULT '' NOT NULL,
|
||||
group_desc_bitfield bytea DEFAULT '\000' NOT NULL,
|
||||
group_desc_bitfield varchar(252) DEFAULT '' NOT NULL,
|
||||
group_desc_options INT4 DEFAULT '0' NOT NULL CHECK (group_desc_options >= 0),
|
||||
group_desc_uid varchar(5) DEFAULT '' NOT NULL,
|
||||
group_display INT2 DEFAULT '0' NOT NULL CHECK (group_display >= 0),
|
||||
@@ -605,7 +605,7 @@ CREATE TABLE phpbb_posts (
|
||||
post_checksum varchar(32) DEFAULT '' NOT NULL,
|
||||
post_encoding varchar(20) DEFAULT 'iso-8859-1' NOT NULL,
|
||||
post_attachment INT2 DEFAULT '0' NOT NULL CHECK (post_attachment >= 0),
|
||||
bbcode_bitfield bytea DEFAULT '\000' NOT NULL,
|
||||
bbcode_bitfield varchar(252) DEFAULT '' NOT NULL,
|
||||
bbcode_uid varchar(5) DEFAULT '' NOT NULL,
|
||||
post_postcount INT2 DEFAULT '1' NOT NULL CHECK (post_postcount >= 0),
|
||||
post_edit_time INT4 DEFAULT '0' NOT NULL CHECK (post_edit_time >= 0),
|
||||
@@ -646,7 +646,7 @@ CREATE TABLE phpbb_privmsgs (
|
||||
message_edit_user INT4 DEFAULT '0' NOT NULL CHECK (message_edit_user >= 0),
|
||||
message_encoding varchar(20) DEFAULT 'iso-8859-1' NOT NULL,
|
||||
message_attachment INT2 DEFAULT '0' NOT NULL CHECK (message_attachment >= 0),
|
||||
bbcode_bitfield bytea DEFAULT '\000' NOT NULL,
|
||||
bbcode_bitfield varchar(252) DEFAULT '' NOT NULL,
|
||||
bbcode_uid varchar(5) DEFAULT '' NOT NULL,
|
||||
message_edit_time INT4 DEFAULT '0' NOT NULL CHECK (message_edit_time >= 0),
|
||||
message_edit_count INT2 DEFAULT '0' NOT NULL CHECK (message_edit_count >= 0),
|
||||
@@ -961,7 +961,7 @@ CREATE TABLE phpbb_styles_template (
|
||||
template_name varchar(252) DEFAULT '' NOT NULL,
|
||||
template_copyright varchar(255) DEFAULT '' NOT NULL,
|
||||
template_path varchar(100) DEFAULT '' NOT NULL,
|
||||
bbcode_bitfield bytea DEFAULT '\220\330' NOT NULL,
|
||||
bbcode_bitfield varchar(252) DEFAULT 'kNg=' NOT NULL,
|
||||
template_storedb INT2 DEFAULT '0' NOT NULL CHECK (template_storedb >= 0),
|
||||
PRIMARY KEY (template_id)
|
||||
);
|
||||
@@ -1270,7 +1270,7 @@ CREATE TABLE phpbb_users (
|
||||
user_avatar_height INT2 DEFAULT '0' NOT NULL,
|
||||
user_sig TEXT DEFAULT '' NOT NULL,
|
||||
user_sig_bbcode_uid varchar(5) DEFAULT '' NOT NULL,
|
||||
user_sig_bbcode_bitfield bytea DEFAULT '\000' NOT NULL,
|
||||
user_sig_bbcode_bitfield varchar(252) DEFAULT '' NOT NULL,
|
||||
user_from varchar(100) DEFAULT '' NOT NULL,
|
||||
user_icq varchar(15) DEFAULT '' NOT NULL,
|
||||
user_aim varchar(255) DEFAULT '' NOT NULL,
|
||||
|
Reference in New Issue
Block a user