patch #3101490 Default function for TIMESTAMP
This commit is contained in:
@@ -532,6 +532,7 @@ foreach ($rows as $row_id => $vrow) {
|
||||
|
||||
if ($field['True_Type'] == 'timestamp'
|
||||
&& empty($field['Default'])
|
||||
&& empty($data)
|
||||
&& ! isset($analyzed_sql[0]['create_table_fields'][$field['Field']]['on_update_current_timestamp'])) {
|
||||
$default_function = $cfg['DefaultFunctions']['first_timestamp'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user