diff --git a/drogon_ctl/create_model.cc b/drogon_ctl/create_model.cc index 12288c96..b929720f 100644 --- a/drogon_ctl/create_model.cc +++ b/drogon_ctl/create_model.cc @@ -740,6 +740,11 @@ void create_model::createModelClassFromSqlite3( } else if (pkNames.size() > 1) { + for (auto &col : cols) + { + col.isAutoVal_ = false; + } + data["primaryKeyName"] = pkNames; data["primaryKeyType"] = pkTypes; data["primaryKeyValNames"] = pkValNames;