mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
OK...
This commit should increase the total number of BBCodes from 31 to 2040. Some things to watch out for: Each database likes to deal with binary data in its own, special way. They are, quite frankly, too cool for school. MySQL, MSSQL and Oracle all allow me to send in a default value for their binary column using a hex number. However, MSSQL forces me to send the specific data as a hex number and thus we must CAST it. PostgreSQL allows me to set a binary column, but with a twist. It demands that the default be in _octal_ and its datatype allows somewhere around a gigabyte's worth of BBCodes ( PGSQL users, we shut you down to 2040 for your own good! ) Firebird has no decent mechanism for allowing me to shuttle in binary data so I must force my way in. By virtue of triggers and a UDF, we ram in our default values. SQLite is the most bizarre of them all. They have no mechanism for turning an ASCII code into a ASCII character. Because of this, we have a trigger and a UDF (just like Firebird!) but with a twist! The UDF is defined on the PHP side of things instead of SQL. SQLite also demands that it's data be encoded before being sent off. Other notes: - SQLite installs again :D - Firebird nearly installs again :P - Database backup is not screwed up :P P.S. I hope nothing broke :D git-svn-id: file:///svn/phpbb/trunk@6209 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -216,7 +216,7 @@ CREATE TABLE phpbb_forums (
|
||||
forum_parents mediumtext DEFAULT '' NOT NULL,
|
||||
forum_name text DEFAULT '' NOT NULL,
|
||||
forum_desc text DEFAULT '' NOT NULL,
|
||||
forum_desc_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_desc_bitfield varbinary(255) DEFAULT '\0' NOT NULL,
|
||||
forum_desc_options int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_desc_uid varchar(5) DEFAULT '' NOT NULL,
|
||||
forum_link varchar(255) DEFAULT '' NOT NULL,
|
||||
@@ -225,7 +225,7 @@ CREATE TABLE phpbb_forums (
|
||||
forum_image varchar(255) DEFAULT '' NOT NULL,
|
||||
forum_rules text DEFAULT '' NOT NULL,
|
||||
forum_rules_link varchar(255) DEFAULT '' NOT NULL,
|
||||
forum_rules_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_rules_bitfield varbinary(255) DEFAULT '\0' NOT NULL,
|
||||
forum_rules_options int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_rules_uid varchar(5) DEFAULT '' NOT NULL,
|
||||
forum_topics_per_page tinyint(4) DEFAULT '0' NOT NULL,
|
||||
@@ -288,7 +288,7 @@ CREATE TABLE phpbb_groups (
|
||||
group_type tinyint(4) DEFAULT '1' NOT NULL,
|
||||
group_name varchar(255) DEFAULT '' NOT NULL,
|
||||
group_desc text DEFAULT '' NOT NULL,
|
||||
group_desc_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
group_desc_bitfield varbinary(255) DEFAULT '\0' NOT NULL,
|
||||
group_desc_options int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
group_desc_uid varchar(5) DEFAULT '' NOT NULL,
|
||||
group_display tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
@@ -430,7 +430,7 @@ CREATE TABLE phpbb_posts (
|
||||
post_checksum varchar(32) DEFAULT '' NOT NULL,
|
||||
post_encoding varchar(20) DEFAULT 'iso-8859-1' NOT NULL,
|
||||
post_attachment tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
bbcode_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
bbcode_bitfield varbinary(255) DEFAULT '\0' NOT NULL,
|
||||
bbcode_uid varchar(5) DEFAULT '' NOT NULL,
|
||||
post_edit_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
post_edit_reason text DEFAULT '' NOT NULL,
|
||||
@@ -465,7 +465,7 @@ CREATE TABLE phpbb_privmsgs (
|
||||
message_edit_user mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
message_encoding varchar(20) DEFAULT 'iso-8859-1' NOT NULL,
|
||||
message_attachment tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
bbcode_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
bbcode_bitfield varbinary(255) DEFAULT '\0' NOT NULL,
|
||||
bbcode_uid varchar(5) DEFAULT '' NOT NULL,
|
||||
message_edit_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
message_edit_count smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
@@ -717,7 +717,7 @@ CREATE TABLE phpbb_styles_template (
|
||||
template_name varchar(255) DEFAULT '' NOT NULL,
|
||||
template_copyright varchar(255) DEFAULT '' NOT NULL,
|
||||
template_path varchar(100) DEFAULT '' NOT NULL,
|
||||
bbcode_bitfield int(11) UNSIGNED DEFAULT '6921' NOT NULL,
|
||||
bbcode_bitfield varbinary(255) DEFAULT 0x90D8 NOT NULL,
|
||||
template_storedb tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
PRIMARY KEY (template_id),
|
||||
UNIQUE template_name (template_name)
|
||||
@@ -992,7 +992,7 @@ CREATE TABLE phpbb_users (
|
||||
user_avatar_height tinyint(4) DEFAULT '0' NOT NULL,
|
||||
user_sig mediumtext DEFAULT '' NOT NULL,
|
||||
user_sig_bbcode_uid varchar(5) DEFAULT '' NOT NULL,
|
||||
user_sig_bbcode_bitfield int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
user_sig_bbcode_bitfield varbinary(255) DEFAULT '\0' 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