From a739b7117eaa0d9815dd75c5a3198a7e9ddebdf7 Mon Sep 17 00:00:00 2001 From: thittesdorf Date: Sat, 10 Sep 2022 23:38:47 -0500 Subject: [PATCH] Switch schema for bool from boolean to tinyint --- mysql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql.go b/mysql.go index 20b6712..97dcf31 100644 --- a/mysql.go +++ b/mysql.go @@ -293,7 +293,7 @@ func (dialector Dialector) Explain(sql string, vars ...interface{}) string { func (dialector Dialector) DataTypeOf(field *schema.Field) string { switch field.DataType { case schema.Bool: - return "boolean" + return "tinyint" case schema.Int, schema.Uint: return dialector.getSchemaIntAndUnitType(field) case schema.Float: