29 const boost::property_tree::ptree &cfg,
58 using namespace odb::core;
59 auto db =
utils_->database();
60 schema_version v = db->schema_version(
"module_auth-db");
61 schema_version cv(schema_catalog::current_version(*db,
"module_auth-db"));
64 transaction t(db->begin());
65 schema_catalog::create_schema(*db,
"module_auth-db");
70 INFO(
"AuthDB Module performing database migration. Going from version "
71 << v <<
" to version " << cv);
72 transaction t(db->begin());
73 schema_catalog::migrate(*db, cv,
"module_auth-db");