From 1cb87213d9d7edb34164d0780b052bf193e9c819 Mon Sep 17 00:00:00 2001 From: Roman Hergenreder Date: Sat, 27 Jun 2020 22:53:36 +0200 Subject: [PATCH] default value fix --- core/Driver/SQL/MySQL.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Driver/SQL/MySQL.class.php b/core/Driver/SQL/MySQL.class.php index 9190274..7686ca1 100644 --- a/core/Driver/SQL/MySQL.class.php +++ b/core/Driver/SQL/MySQL.class.php @@ -237,7 +237,7 @@ class MySQL extends SQL { $notNull = $column->notNull() ? " NOT NULL" : ""; if (!is_null($defaultValue) || !$column->notNull()) { - $defaultValue = " DEFAULT " . $this->getValueDefinition($column->getDefaultValue()); + $defaultValue = " DEFAULT " . $this->getValueDefinition($defaultValue); } else { $defaultValue = ""; }