diff --git a/sql/updates/2.14.0--2.13.1.sql b/sql/updates/2.14.0--2.13.1.sql index a3a6600ed..319f07e62 100644 --- a/sql/updates/2.14.0--2.13.1.sql +++ b/sql/updates/2.14.0--2.13.1.sql @@ -88,7 +88,7 @@ BEGIN -- restore columns from the compressed hypertable FOR column_name, column_type IN - SELECT attname, atttypid::regtype FROM pg_attribute WHERE attrelid = chunk AND attnum > 0 + SELECT attname, atttypid::regtype FROM pg_attribute WHERE attrelid = chunk AND attnum > 0 AND NOT attisdropped LOOP cmd := format('ALTER TABLE %s ADD COLUMN %I %s', hypertable, column_name, column_type); EXECUTE cmd;