diff --git a/database/mysql/mysql.go b/database/mysql/mysql.go index 5ae0f9d..6b377a1 100644 --- a/database/mysql/mysql.go +++ b/database/mysql/mysql.go @@ -17,6 +17,7 @@ var ( "bigint unsigned": {Name: "number", Format: ""}, "longtext": {Name: "string", Format: ""}, "datetime(3)": {Name: "string", Format: "date-time"}, + "tinyint(1)": {Name: "boolean", Format: ""}, } ) diff --git a/database/sqlite3/sqlite3.go b/database/sqlite3/sqlite3.go index 0c98b60..0b8b101 100644 --- a/database/sqlite3/sqlite3.go +++ b/database/sqlite3/sqlite3.go @@ -66,6 +66,7 @@ var ( "text": {Name: "string", Format: ""}, "boolean": {Name: "boolean", Format: ""}, "BOOLEAN": {Name: "boolean", Format: ""}, + "numeric": {Name: "boolean", Format: ""}, "datetime": {Name: "string", Format: "date-time"}, "DATETIME": {Name: "string", Format: "date-time"}, } diff --git a/test/setup.go b/test/setup.go index e37d8b1..b203bb5 100644 --- a/test/setup.go +++ b/test/setup.go @@ -23,7 +23,8 @@ type Artist struct { type Album struct { gorm.Model - Title string + Title string + Released bool } type Track struct {