Merge pull request #274 from CartoDB/273-cache_table_cdb_analysis_catalog
Adding a new column to have the name of the cached analysis in case there is one
This commit is contained in:
@@ -26,7 +26,9 @@ cartodb.cdb_analysis_catalog (
|
|||||||
-- last job modifying the node
|
-- last job modifying the node
|
||||||
last_modified_by uuid,
|
last_modified_by uuid,
|
||||||
-- store error message for failures
|
-- store error message for failures
|
||||||
last_error_message text
|
last_error_message text,
|
||||||
|
-- cached tables involved in the analysis
|
||||||
|
cache_tables regclass[] NOT NULL DEFAULT '{}'
|
||||||
);
|
);
|
||||||
|
|
||||||
-- This can only be called from an SQL script executed by CREATE EXTENSION
|
-- This can only be called from an SQL script executed by CREATE EXTENSION
|
||||||
@@ -62,3 +64,12 @@ DO $$
|
|||||||
WHEN duplicate_column THEN END;
|
WHEN duplicate_column THEN END;
|
||||||
END;
|
END;
|
||||||
$$;
|
$$;
|
||||||
|
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
BEGIN
|
||||||
|
ALTER TABLE cartodb.cdb_analysis_catalog ADD COLUMN cache_tables regclass[] NOT NULL DEFAULT '{}';
|
||||||
|
EXCEPTION
|
||||||
|
WHEN duplicate_column THEN END;
|
||||||
|
END;
|
||||||
|
$$;
|
||||||
|
|||||||
Reference in New Issue
Block a user