From: Alexander Ebert Date: Thu, 1 Mar 2012 14:43:30 +0000 (+0100) Subject: Fixed previous commit X-Git-Tag: 2.0.0_Beta_1~1281^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cea0957a03e44cf8f68261322bea744c6be8b3ee;p=GitHub%2FWoltLab%2FWCF.git Fixed previous commit --- diff --git a/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php b/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php index b2e480b125..1cfb553b90 100644 --- a/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php @@ -130,7 +130,7 @@ class UserOptionEditor extends DatabaseObjectEditor { case 'birthday': case 'date': $column['notNull'] = true; - $column['default'] = '0000-00-00'; + $column['default'] = "'0000-00-00'"; $column['length'] = 10; $column['type'] = 'char'; break; diff --git a/wcfsetup/install/files/lib/system/database/editor/MySQLDatabaseEditor.class.php b/wcfsetup/install/files/lib/system/database/editor/MySQLDatabaseEditor.class.php index 3e798dfe52..8412c657e4 100644 --- a/wcfsetup/install/files/lib/system/database/editor/MySQLDatabaseEditor.class.php +++ b/wcfsetup/install/files/lib/system/database/editor/MySQLDatabaseEditor.class.php @@ -198,7 +198,7 @@ class MySQLDatabaseEditor extends DatabaseEditor { // not null / null if (!empty($columnData['notNull'])) $definition .= " NOT NULL"; // default - if (isset($columnData['default']) && $columnData['default'] !== '') $definition .= " DEFAULT '".$columnData['default']."'"; + if (isset($columnData['default']) && $columnData['default'] !== '') $definition .= " DEFAULT ".$columnData['default']; // auto_increment if (!empty($columnData['autoIncrement'])) $definition .= " AUTO_INCREMENT"; // key