-- V26: PostgreSQL lease/fencing/CAS additions for durable background Tasks (Story 4.3). alter table tasks add column if not exists fence bigint not null default 0; alter table tasks add column if not exists lease_owner text; alter table tasks add column if not exists lease_until timestamptz; alter table tasks add column if not exists current_attempt_id text; alter table tasks add column if not exists dispatch_started_at timestamptz;