Emulate new overview table naming schme in the tests
This commit is contained in:
@@ -5,9 +5,9 @@ AS $$
|
||||
BEGIN
|
||||
IF (SELECT 'test_table_overviews'::regclass = ANY (table_names)) THEN
|
||||
RETURN QUERY
|
||||
SELECT 'test_table_overviews'::regclass AS base_table, 1 AS z, 'test_table_overviews_ov1'::regclass AS overviw_table
|
||||
SELECT 'test_table_overviews'::regclass AS base_table, 1 AS z, '_vovw_1_test_table_overviews'::regclass AS overview_table
|
||||
UNION ALL
|
||||
SELECT 'test_table_overviews'::regclass AS base_table, 2 AS z, 'test_table_overviews_ov2'::regclass AS overviw_table;
|
||||
SELECT 'test_table_overviews'::regclass AS base_table, 2 AS z, '_vovw_2_test_table_overviews'::regclass AS overview_table;
|
||||
ELSE
|
||||
RETURN;
|
||||
END IF;
|
||||
|
||||
@@ -285,7 +285,7 @@ CREATE INDEX test_table_overviews_the_geom_webmercator_idx ON test_table_overvie
|
||||
GRANT ALL ON TABLE test_table_overviews TO :TESTUSER;
|
||||
GRANT SELECT ON TABLE test_table_overviews TO :PUBLICUSER;
|
||||
|
||||
CREATE TABLE test_table_overviews_ov1 (
|
||||
CREATE TABLE _vovw_1_test_table_overviews (
|
||||
updated_at timestamp without time zone DEFAULT now(),
|
||||
created_at timestamp without time zone DEFAULT now(),
|
||||
cartodb_id integer NOT NULL,
|
||||
@@ -301,7 +301,7 @@ CREATE TABLE test_table_overviews_ov1 (
|
||||
CONSTRAINT enforce_srid_the_geom_webmercator CHECK ((st_srid(the_geom_webmercator) = 3857))
|
||||
);
|
||||
|
||||
CREATE TABLE test_table_overviews_ov2 (
|
||||
CREATE TABLE _vovw_2_test_table_overviews (
|
||||
updated_at timestamp without time zone DEFAULT now(),
|
||||
created_at timestamp without time zone DEFAULT now(),
|
||||
cartodb_id integer NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user