Fix regclass mismatch on column alter/drop

This logic SHOULD BE MOVED TO Cartodbfy internals.
This commit is contained in:
Paul Ramsey 2015-08-13 16:10:23 -07:00
parent d268cd07cb
commit 7f55a0263b

View File

@ -106,8 +106,8 @@ BEGIN
newtable := Format('%s.%s', rel.nspname, rel.relname)::regclass;
-- update CDB_TableMetadata.updated_at (should invalidate varnish)
UPDATE cartodb.CDB_TableMetadata SET updated_at = NOW()
WHERE tabname = newtable;
UPDATE cartodb.CDB_TableMetadata SET updated_at = NOW(), tabname = newtable
WHERE tabname = event_info.relation;
END; $$;
-- }
@ -152,8 +152,8 @@ BEGIN
newtable := Format('%s.%s', rel.nspname, rel.relname)::regclass;
-- update CDB_TableMetadata.updated_at (should invalidate varnish)
UPDATE cartodb.CDB_TableMetadata SET updated_at = NOW()
WHERE tabname = newtable;
UPDATE cartodb.CDB_TableMetadata SET updated_at = NOW(), tabname = newtable
WHERE tabname = event_info.relation;
END; $$;
-- }