From f94373e71522b8c6b4f10208e564309eb961ad1c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 5 Jul 2023 15:05:33 +0800 Subject: [PATCH] bugfix --- sqlor/ddl_template_mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlor/ddl_template_mysql.py b/sqlor/ddl_template_mysql.py index 8b39434..70c3815 100755 --- a/sqlor/ddl_template_mysql.py +++ b/sqlor/ddl_template_mysql.py @@ -16,7 +16,7 @@ time {%- elif type=='datetime' -%} datetime {%- elif type=='timestamp' -%} -TIMESTAMP +TIMESTAMP DEFAULT CURRENT_TIMESTAMP {%- elif type=='text' -%} longtext {%- elif type=='bin' -%}