1108 separator for cleaner SQL

This commit is contained in:
Juan Ignacio Sánchez Lara 2015-09-21 15:37:10 +02:00
parent 8fdf5cb9c4
commit 0e4f3955f6

View File

@ -1,7 +1,9 @@
CREATE OR REPLACE
FUNCTION cartodb.CDB_Organization_Member_Group_Role_Member_Name()
RETURNS TEXT
AS 'SELECT ''cdb_org_member''::text || ''_'' || md5(current_database());'
AS $$
SELECT 'cdb_org_member'::text || '_' || md5(current_database());
$$
LANGUAGE SQL IMMUTABLE;
DO LANGUAGE 'plpgsql' $$
@ -31,7 +33,9 @@ $$ LANGUAGE PLPGSQL VOLATILE;
CREATE OR REPLACE
FUNCTION cartodb._CDB_Organization_Admin_Role_Name()
RETURNS TEXT
AS 'SELECT current_database() || ''_admin''::text;'
AS $$
SELECT current_database() || '_admin'::text;
$$
LANGUAGE SQL IMMUTABLE;
-- Administrator role creation on extension install