diff options
author | David M <davidmj@users.sourceforge.net> | 2007-03-04 23:59:47 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-03-04 23:59:47 +0000 |
commit | b7530088d164ea409dad3a2af35493a04c877ef6 (patch) | |
tree | 161f14067e72b84ddc8b6e301ec3630fe2097211 /phpBB/develop/create_schema_files.php | |
parent | fe1d717c102031dfe82f90251fa1b69490db1d93 (diff) | |
download | forums-b7530088d164ea409dad3a2af35493a04c877ef6.tar forums-b7530088d164ea409dad3a2af35493a04c877ef6.tar.gz forums-b7530088d164ea409dad3a2af35493a04c877ef6.tar.bz2 forums-b7530088d164ea409dad3a2af35493a04c877ef6.tar.xz forums-b7530088d164ea409dad3a2af35493a04c877ef6.zip |
#8502
git-svn-id: file:///svn/phpbb/trunk@7124 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/develop/create_schema_files.php')
-rw-r--r-- | phpBB/develop/create_schema_files.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/develop/create_schema_files.php b/phpBB/develop/create_schema_files.php index 264b722d8a..8add2c8938 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]) && substr($column_type, -4) !== 'text') + if (!is_null($column_data[1]) && substr($column_type, -4) !== 'text' && substr($column_type, -4) !== 'blob') { $line .= (strpos($column_data[1], '0x') === 0) ? "DEFAULT {$column_data[1]} " : "DEFAULT '{$column_data[1]}' "; } @@ -616,6 +616,7 @@ foreach ($supported_dbms as $dbms) switch ($modded_array[$col_name]) { case 'text': + case 'blob': $key_data[1][$key] = $col_name . '(255)'; break; } |