aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop/create_schema_files.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-10-11 19:56:27 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-10-11 19:56:27 +0000
commit31463d2ccc1b2df8ed41ed055e57059f50b9a960 (patch)
treedd9b86931938cbed50e83311c9a2902c3fc65bff /phpBB/develop/create_schema_files.php
parentd7ee6969d21d6144b328b07d3bad1333a466e739 (diff)
downloadforums-31463d2ccc1b2df8ed41ed055e57059f50b9a960.tar
forums-31463d2ccc1b2df8ed41ed055e57059f50b9a960.tar.gz
forums-31463d2ccc1b2df8ed41ed055e57059f50b9a960.tar.bz2
forums-31463d2ccc1b2df8ed41ed055e57059f50b9a960.tar.xz
forums-31463d2ccc1b2df8ed41ed055e57059f50b9a960.zip
#4700
git-svn-id: file:///svn/phpbb/trunk@6480 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/develop/create_schema_files.php')
-rw-r--r--phpBB/develop/create_schema_files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/develop/create_schema_files.php b/phpBB/develop/create_schema_files.php
index d88613f26f..7e5232a445 100644
--- a/phpBB/develop/create_schema_files.php
+++ b/phpBB/develop/create_schema_files.php
@@ -373,7 +373,7 @@ foreach ($supported_dbms as $dbms)
$line .= "\t{$column_name} {$column_type} ";
// For hexadecimal values do not use single quotes
- if (!is_null($column_data[1]))
+ if (!is_null($column_data[1]) && substr($column_type, -4) !== 'text')
{
$line .= (strpos($column_data[1], '0x') === 0) ? "DEFAULT {$column_data[1]} " : "DEFAULT '{$column_data[1]}' ";
}