Skip to content

Commit

Permalink
Fixed marklogic-community#454: added package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
grtjn committed Jun 14, 2017
1 parent 0c8ea68 commit be26f7b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2036,7 +2036,7 @@ def deploy_src
if ['rest', 'hybrid'].include? @properties["ml.app-type"]
# This app uses the REST API, so grant permissions to the rest roles. This allows REST extensions to call
# modules not deployed through the REST API.
# These roles are present in MarkLogic 6+.
# These roles are present in MarkLogic 7+.
src_permissions.push permissions('rest-admin', Roxy::ContentCapability::RU)
src_permissions.push permissions('rest-extension-user', Roxy::ContentCapability::EXECUTE)
src_permissions.flatten!
Expand Down
3 changes: 3 additions & 0 deletions deploy/lib/xquery/setup.xqy
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,9 @@ declare function setup:delete-databases($db-config as element(db:database))
return
if (admin:database-exists($admin-config, $db-name)) then
let $db-id := admin:database-get-id($admin-config, $db-name)
let $admin-config := admin:database-set-schema-database($admin-config, $db-id, $default-schemas)
let $admin-config := admin:database-set-security-database($admin-config, $db-id, $default-security)
let $admin-config := admin:database-set-triggers-database($admin-config, $db-id, 0)
let $forest-ids := admin:database-get-attached-forests($admin-config, $db-id)
let $detach :=
for $id in $forest-ids
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "roxy",
"version": "1.7.7-dev"
}

0 comments on commit be26f7b

Please sign in to comment.