Skip to content

Commit

Permalink
datastore: Explicitly connect to datastore DB in set-permissions
Browse files Browse the repository at this point in the history
See comment in set_permissions.sql
  • Loading branch information
nickstenning committed Jun 24, 2014
1 parent e3ae168 commit 16418ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ckanext/datastore/set_permissions.sql
Expand Up @@ -19,6 +19,12 @@ over SSH:
*/

-- Most of the following commands apply to an explicit database or to the whole
-- 'public' schema, and could be executed anywhere. But ALTER DEFAULT
-- PERMISSIONS applies to the current database, and so we must be connected to
-- the datastore DB:
\connect {datastoredb}

-- revoke permissions for the read-only user
REVOKE CREATE ON SCHEMA public FROM PUBLIC;
REVOKE USAGE ON SCHEMA public FROM PUBLIC;
Expand Down

0 comments on commit 16418ec

Please sign in to comment.