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!
This commit is contained in:
Michael Richey 2020-08-13 08:53:57 -05:00 committed by GitHub
parent 861347318d
commit 3c5928caa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10013,7 +10013,7 @@ class Interpretation extends Fields
elseif ($default === 'DATETIME' elseif ($default === 'DATETIME'
|| $default === 'CURRENT_TIMESTAMP') || $default === 'CURRENT_TIMESTAMP')
{ {
$default = $default . ' ' . $data['null_switch']; $default = $data['null_switch'] . ' ' . $default;
} }
elseif ($default == 0 || $default) elseif ($default == 0 || $default)
{ {