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:
parent
861347318d
commit
3c5928caa9
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user