From ea773a2a9bf97cab1eebe56a1bef9bbc80f85efa Mon Sep 17 00:00:00 2001 From: IGuoSJ Date: Thu, 1 Sep 2022 15:21:42 +0800 Subject: [PATCH] CreateTableSuffix add DEFAULT --- dialect_mysql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialect_mysql.go b/dialect_mysql.go index d068ebe8..f9b056f3 100644 --- a/dialect_mysql.go +++ b/dialect_mysql.go @@ -116,7 +116,7 @@ func (d MySQLDialect) CreateTableSuffix() string { panic(msg) } - return fmt.Sprintf(" engine=%s charset=%s", d.Engine, d.Encoding) + return fmt.Sprintf(" engine=%s DEFAULT charset=%s", d.Engine, d.Encoding) } func (d MySQLDialect) CreateIndexSuffix() string {