Fix changing column with on update CURRENT_TIMESTAMP active
The value was not selected by default when it is already configured on the column Signed-off-by: Maximilian Krög <maximilian.kroeg@geocept.com>
This commit is contained in:
parent
7759ec30db
commit
5f39f3d544
@ -2,7 +2,7 @@
|
||||
{% set attribute = submit_attribute %}
|
||||
{# MariaDB has additional parentheses #}
|
||||
{% elseif column_meta['Extra'] is defined
|
||||
and ('on update current_timestamp' in column_meta['Extra'] or 'on update current_timestamp()' in column_meta['Extra']|lower) %}
|
||||
and ('on update current_timestamp' in column_meta['Extra']|lower or 'on update current_timestamp()' in column_meta['Extra']|lower) %}
|
||||
{% set attribute = 'on update CURRENT_TIMESTAMP' %}
|
||||
{% elseif extracted_columnspec['attribute'] is defined %}
|
||||
{% set attribute = extracted_columnspec['attribute'] %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user