diff --git a/drogon_ctl/create_model.cc b/drogon_ctl/create_model.cc index 97e9f2c4..231a6f18 100644 --- a/drogon_ctl/create_model.cc +++ b/drogon_ctl/create_model.cc @@ -194,6 +194,10 @@ void create_model::createModelClassFromPG( info.isAutoVal_ = true; } } + auto isIdentity = row["is_identity"].as(); + if (isIdentity == "YES") { + info.isAutoVal_ = true; + } cols.push_back(std::move(info)); } } >>