Add database roles used in testsuite

Actually only "tileuser" is currently used, but
"development_cartodb_user_3" is also referenced by the gadm4.sql
so I added that too.
This commit is contained in:
Sandro Santilli
2012-07-09 15:35:17 +02:00
parent 2bdb284897
commit a15bca9dc7
2 changed files with 5 additions and 0 deletions

View File

@@ -96,6 +96,9 @@ ALTER TABLE ONLY gadm4
ADD CONSTRAINT bdll25_provincias_4326_2_pkey PRIMARY KEY (cartodb_id);
CREATE INDEX bdll25_provincias_4326_2_the_geom_webmercator_idx ON gadm4 USING gist (the_geom_webmercator);
-- development_cartodb_user_3 role
CREATE USER development_cartodb_user_3;
GRANT ALL ON TABLE gadm4 TO development_cartodb_user_3;
GRANT SELECT ON TABLE gadm4 TO tileuser;

View File

@@ -15,6 +15,8 @@ SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
-- tileuser role
CREATE USER tileuser;
-- first table
CREATE TABLE test_table (