diff --git a/src/backend/mysql/table.rs b/src/backend/mysql/table.rs index ceec823c..036f65cc 100644 --- a/src/backend/mysql/table.rs +++ b/src/backend/mysql/table.rs @@ -81,8 +81,8 @@ impl TableBuilder for MysqlQueryBuilder { } ColumnType::Boolean => "bool".into(), ColumnType::Money(precision) => match precision { - Some((precision, scale)) => format!("money({precision}, {scale})"), - None => "money".into(), + Some((precision, scale)) => format!("decimal({precision}, {scale})"), + None => "decimal".into(), }, ColumnType::Json => "json".into(), ColumnType::JsonBinary => "json".into(), diff --git a/src/table/column.rs b/src/table/column.rs index 3f1edddd..6527ca0d 100644 --- a/src/table/column.rs +++ b/src/table/column.rs @@ -43,7 +43,7 @@ pub trait IntoColumnDef { /// | Bit | bit | bit | N/A | /// | VarBit | bit | varbit | N/A | /// | Boolean | bool | bool | boolean | -/// | Money | money | money | real_money | +/// | Money | decimal | money | real_money | /// | Json | json | json | json_text | /// | JsonBinary | json | jsonb | jsonb_text | /// | Uuid | binary(16) | uuid | uuid_text |