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 has been archived by the owner on Nov 9, 2022. It is now read-only.
declare function setup:remove-existing-default-rulesets(
$admin-config as element(configuration),
$database as xs:unsignedLong) as element(configuration)
{
admin:database-delete-default-ruleset($admin-config, $database,
admin:database-get-default-rulesets($admin-config, $database)
)
};
declare function setup:add-default-rulesets(
$admin-config as element(configuration),
$database as xs:unsignedLong,
$db-config as element(db:database)) as element(configuration)
{
admin:database-add-default-ruleset(
setup:remove-existing-default-rulesets($admin-config, $database),
$database,
$db-config/db:default-rulesets/db:default-ruleset/admin:database-ruleset(string(.))
)
};
declare function setup:validate-default-rulesets(
$admin-config as element(configuration),
$database as xs:unsignedLong,
$db-config as element(db:database))
{
let $existing := admin:database-get-default-rulesets($admin-config, $database)
for $expected in $db-config/db:default-rulesets/db:default-ruleset
return
if ($existing[fn:deep-equal(., $expected)]) then ()
else
setup:validation-fail(fn:concat("Missing default ruleset: ", $expected/db:location/fn:string(.)))
};
The text was updated successfully, but these errors were encountered:
I made following changes to
setup.xqy
locally to make it work..Added this to
setup:configure-indexes
:Added this to
setup:validate-database-indexes
:And inserted this somewhere:
The text was updated successfully, but these errors were encountered: