aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-10-02 15:32:41 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-10-02 15:32:41 +0000
commit94121dc76516d3db7a5b6f174055abccb41bcd7c (patch)
tree7308c754418f2c471693efdbdd2fee603087c60b /phpBB
parentec9978f2eb307ccb10c6cf371503a35db319f076 (diff)
downloadforums-94121dc76516d3db7a5b6f174055abccb41bcd7c.tar
forums-94121dc76516d3db7a5b6f174055abccb41bcd7c.tar.gz
forums-94121dc76516d3db7a5b6f174055abccb41bcd7c.tar.bz2
forums-94121dc76516d3db7a5b6f174055abccb41bcd7c.tar.xz
forums-94121dc76516d3db7a5b6f174055abccb41bcd7c.zip
#4572
git-svn-id: file:///svn/phpbb/trunk@6430 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/develop/create_schema_files.php4
-rw-r--r--phpBB/install/schemas/mysql_40_schema.sql4
2 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/develop/create_schema_files.php b/phpBB/develop/create_schema_files.php
index 2aad6c3900..96c46eca22 100644
--- a/phpBB/develop/create_schema_files.php
+++ b/phpBB/develop/create_schema_files.php
@@ -354,6 +354,10 @@ foreach ($supported_dbms as $dbms)
{
$orig_column_type = $column_data[0];
$column_type = $dbms_type_map[$dbms][$column_data[0]];
+ if ($column_type == 'text')
+ {
+ $modded_array[$column_name] = $column_type;
+ }
}
// Adjust default value if db-dependant specified
diff --git a/phpBB/install/schemas/mysql_40_schema.sql b/phpBB/install/schemas/mysql_40_schema.sql
index 5fee2fc54c..b688f91aeb 100644
--- a/phpBB/install/schemas/mysql_40_schema.sql
+++ b/phpBB/install/schemas/mysql_40_schema.sql
@@ -637,7 +637,7 @@ CREATE TABLE phpbb_search_wordlist (
word_text text DEFAULT '' NOT NULL,
word_common tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (word_id),
- UNIQUE wrd_txt (word_text)
+ UNIQUE wrd_txt (word_text(255))
);
@@ -1032,7 +1032,7 @@ CREATE TABLE phpbb_users (
KEY user_birthday (user_birthday),
KEY user_email_hash (user_email_hash),
KEY user_type (user_type),
- KEY username (username)
+ KEY username (username(255))
);