From cea0957a03e44cf8f68261322bea744c6be8b3ee Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 1 Mar 2012 15:43:30 +0100 Subject: [PATCH] Fixed previous commit --- .../files/lib/data/user/option/UserOptionEditor.class.php | 2 +- .../lib/system/database/editor/MySQLDatabaseEditor.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1