From 74d5501c78852b5f38e684613e776ab5d2da5726 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 1 Mar 2012 15:40:15 +0100 Subject: [PATCH] Fixed handling of DEFAULT values --- .../lib/system/database/editor/MySQLDatabaseEditor.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8412c657e4..3e798dfe52 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