diff --git a/drogon_ctl/create_model.cc b/drogon_ctl/create_model.cc index b929720f..5b62fc25 100644 --- a/drogon_ctl/create_model.cc +++ b/drogon_ctl/create_model.cc @@ -481,6 +481,11 @@ void create_model::createModelClassFromMysql( info.colType_ = "int16_t"; info.colLength_ = 2; } + else if (type.find("mediumint") == 0) + { + info.colType_ = "int32_t"; + info.colLength_ = 3; + } else if (type.find("int") == 0) { info.colType_ = "int32_t";