Skip to content

Commit

Permalink
upgrade schema
Browse files Browse the repository at this point in the history
  • Loading branch information
astibal committed Nov 1, 2023
1 parent b96fc7a commit 0904207
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/service/cfgapi/cfgapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@ bool CfgFactory::upgrade_schema(int upgrade_to_num) {
log.event(INF, "added captures.options.calculate_checksums");
return true;
}
else if(upgrade_to_num == 1020) {
log.event(INF, "added policy feature 'access-request'");
return true;
}

return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/service/cfgapi/cfgapi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class CfgFactory : public CfgFactoryBase {
public:
// Each version bump implies a config upgrade - we start on 1000
// see upgrade_schema() - control config upgrade
constexpr static inline const int SCHEMA_VERSION = 1019;
constexpr static inline const int SCHEMA_VERSION = 1020;

static inline std::atomic_bool LOAD_ERRORS = false;

Expand Down

0 comments on commit 0904207

Please sign in to comment.