fix test
This commit is contained in:
parent
e3138cd56a
commit
50e41179fc
@ -1,5 +1,6 @@
|
|||||||
-- Create user and enable Ghost tables trigger
|
-- Create user and enable Ghost tables trigger
|
||||||
\set QUIET on
|
\set QUIET on
|
||||||
|
SET client_min_messages TO error;
|
||||||
CREATE ROLE "fulano" LOGIN;
|
CREATE ROLE "fulano" LOGIN;
|
||||||
GRANT ALL ON SCHEMA cartodb TO "fulano";
|
GRANT ALL ON SCHEMA cartodb TO "fulano";
|
||||||
GRANT SELECT ON cartodb.cdb_ddl_execution TO "fulano";
|
GRANT SELECT ON cartodb.cdb_ddl_execution TO "fulano";
|
||||||
@ -8,6 +9,7 @@ GRANT EXECUTE ON FUNCTION CDB_LinkGhostTables() TO "fulano";
|
|||||||
SELECT CDB_EnableGhostTablesTrigger();
|
SELECT CDB_EnableGhostTablesTrigger();
|
||||||
INSERT INTO cdb_conf (key, value) VALUES ('api_keys_fulano', '{"username": "fulanito", "permissions":[]}');
|
INSERT INTO cdb_conf (key, value) VALUES ('api_keys_fulano', '{"username": "fulanito", "permissions":[]}');
|
||||||
SET SESSION AUTHORIZATION "fulano";
|
SET SESSION AUTHORIZATION "fulano";
|
||||||
|
SET client_min_messages TO notice;
|
||||||
\set QUIET off
|
\set QUIET off
|
||||||
|
|
||||||
SELECT CDB_LinkGhostTables(); -- _CDB_LinkGhostTables called
|
SELECT CDB_LinkGhostTables(); -- _CDB_LinkGhostTables called
|
||||||
|
Loading…
Reference in New Issue
Block a user