2014-05-14 18:39:53 +08:00
|
|
|
DO $$ BEGIN IF EXISTS (SELECT * FROM pg_proc p, pg_namespace n WHERE p.proname = 'cdb_transformtowebmercator' AND p.pronamespace = n.oid AND n.nspname = 'public') THEN RAISE EXCEPTION 'Use CREATE EXTENSION cartodb FROM unpackaged'; END IF; END; $$ LANGUAGE 'plpgsql'; -- forbid duplicated extension
|
|
|
|
|
2019-05-31 21:29:28 +08:00
|
|
|
CREATE OR REPLACE FUNCTION @extschema@.CDB_version()
|
2014-05-08 16:07:47 +08:00
|
|
|
RETURNS text AS $$
|
|
|
|
SELECT '@@VERSION@@'::text;
|
|
|
|
$$ language 'sql' IMMUTABLE STRICT;
|
|
|
|
|