view PostgreSQL/Plugins/SQL/Upgrades/Rev6ToRev10.sql @ 778:470c5b5c196f

fix
author Alain Mazy <am@orthanc.team>
date Sat, 29 Nov 2025 16:09:41 +0100
parents a07d176a4b58
children 135bd5b3228c
line wrap: on
line source

-- Adding a PK to these 2 table to allow pg_repack to process these tables, enabling reclaiming disk space and defragmenting the tables.

ALTER TABLE InvalidChildCounts ADD COLUMN pk BIGSERIAL PRIMARY KEY;
ALTER TABLE GlobalIntegersChanges ADD COLUMN pk BIGSERIAL PRIMARY KEY;

-- Adding the queues timeout
ALTER TABLE Queues ADD COLUMN reservedUntil BIGINT DEFAULT NULL;