Skip to content

Commit

Permalink
dir: default dbdriver to postgresql
Browse files Browse the repository at this point in the history
Previously dbdriver was a required setting. As PostgreSQL is the only
non-deprecated option right now, we set this as the default value.
  • Loading branch information
arogge committed Aug 7, 2020
1 parent f0b8389 commit 2a21c54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/dird/dird_conf.cc
Expand Up @@ -322,7 +322,7 @@ static ResourceItem cat_items[] = {
{ "User", CFG_TYPE_STR, ITEM(res_cat, db_user), 0, CFG_ITEM_ALIAS, NULL, NULL, NULL },
{ "DbName", CFG_TYPE_STR, ITEM(res_cat, db_name), 0, CFG_ITEM_REQUIRED, NULL, NULL, NULL },
#ifdef HAVE_DYNAMIC_CATS_BACKENDS
{ "DbDriver", CFG_TYPE_STR, ITEM(res_cat, db_driver), 0, CFG_ITEM_REQUIRED, NULL, NULL, NULL },
{ "DbDriver", CFG_TYPE_STR, ITEM(res_cat, db_driver), 0, CFG_ITEM_DEFAULT, "postgresql", NULL, NULL },
#else
{ "DbDriver", CFG_TYPE_STR, ITEM(res_cat, db_driver), 0, 0, NULL, NULL, NULL },
#endif
Expand Down
Expand Up @@ -1943,8 +1943,8 @@
"DbDriver": {
"datatype": "STRING",
"code": 0,
"equals": true,
"required": true
"default_value": "postgresql",
"equals": true
},
"DbSocket": {
"datatype": "STRING",
Expand Down

0 comments on commit 2a21c54

Please sign in to comment.