Do not use plpgsql language

This commit is contained in:
Raul Ochoa 2016-07-01 12:34:40 +02:00
parent 15a8876d06
commit c96bf7c7d5

View File

@ -29,7 +29,7 @@ cartodb.cdb_analysis_catalog (
last_error_message text
);
DO LANGUAGE 'plpgsql' $$
DO $$
BEGIN
BEGIN
ALTER TABLE cartodb.cdb_analysis_catalog ADD COLUMN username text;
@ -39,7 +39,7 @@ DO LANGUAGE 'plpgsql' $$
END;
$$;
DO LANGUAGE 'plpgsql' $$
DO $$
BEGIN
BEGIN
ALTER TABLE cartodb.cdb_analysis_catalog ADD COLUMN last_modified_by uuid;
@ -49,7 +49,7 @@ DO LANGUAGE 'plpgsql' $$
END;
$$;
DO LANGUAGE 'plpgsql' $$
DO $$
BEGIN
BEGIN
ALTER TABLE cartodb.cdb_analysis_catalog ADD COLUMN last_error_message text;