fix: 移除timestamp字段的显式default声明

DDL生成器会自动为timestamp类型添加DEFAULT CURRENT_TIMESTAMP,
显式指定会导致重复DEFAULT声明,MySQL报错1067。

修复的表:
- discount_marketing (created_at, updated_at)
- discount_promo_code (created_at)
- discount_customer_bind (created_at)
This commit is contained in:
Hermes Agent 2026-06-24 01:03:35 +08:00
parent d87d8f5ffa
commit 8040238ea5
3 changed files with 0 additions and 4 deletions

View File

@ -54,7 +54,6 @@
"name": "created_at",
"title": "绑定时间",
"type": "timestamp",
"default": "CURRENT_TIMESTAMP",
"nullable": "no"
}
],

View File

@ -56,14 +56,12 @@
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"default": "CURRENT_TIMESTAMP",
"nullable": "no"
},
{
"name": "updated_at",
"title": "更新时间",
"type": "timestamp",
"default": "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP",
"nullable": "no"
}
],

View File

@ -54,7 +54,6 @@
"name": "created_at",
"title": "生成时间",
"type": "timestamp",
"default": "CURRENT_TIMESTAMP",
"nullable": "no"
}
],