From 3c5928caa9a262f674bef29238a62278f183c1b7 Mon Sep 17 00:00:00 2001 From: Michael Richey Date: Thu, 13 Aug 2020 08:53:57 -0500 Subject: [PATCH] Update e_Interpretation.php When field default is DATETIME or CURRENT_TIMESTAMP, the SQL is constructed out of order. The default gets inserted before the NULL/NOT NULL string. One line fix - YAY! --- admin/helpers/compiler/e_Interpretation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index e54d777ad..c50b3f372 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -10013,7 +10013,7 @@ class Interpretation extends Fields elseif ($default === 'DATETIME' || $default === 'CURRENT_TIMESTAMP') { - $default = $default . ' ' . $data['null_switch']; + $default = $data['null_switch'] . ' ' . $default; } elseif ($default == 0 || $default) {