Move admin0 server functions around

- move files to its right place
- add some boilerplate for test setup
- add tests
This commit is contained in:
Rafa de la Torre
2015-11-10 19:27:05 +01:00
parent 7dfd08c947
commit 738138b205
6 changed files with 72 additions and 4 deletions

View File

@@ -8,3 +8,14 @@ CREATE EXTENSION cdb_geocoder;
-- Install the extension
CREATE EXTENSION cdb_geocoder_server;
-- Mock the varnish invalidation function
-- (used by cdb_geocoder tests)
CREATE OR REPLACE FUNCTION public.cdb_invalidate_varnish(table_name text) RETURNS void AS $$
BEGIN
RETURN;
END
$$
LANGUAGE plpgsql;
-- Set user quota
SELECT cartodb.CDB_SetUserQuotaInBytes(0);