You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
It will be quite handy that during setup:apply-database-settings at xquery/setup.xqy, instead of doing nothing whenever a value it's not set, it would default to some other value.
Like this, we would make sure that the database configuration and the configuration are perfectly aligned after a bootstrap.
Example:
let $value := setup:get-setting-from-database-config-as-string($database-config, "directory-creation")
let $admin-config :=
if ($value) thenadmin:database-set-directory-creation($admin-config, $database, $value)
elseadmin:database-set-directory-creation($admin-config, $database, "manual")
After a bootstrap it won't matter if somebody changed the setting manually or somebody removed the line from the config file. The setting will default to Manual and automatic directory creation will be disabled.
Thanks!
Again: I could send a pull request if you think it's interesting for everybody else.