ALTER TABLE acquisition_settings DROP COLUMN seed_ratio, DROP COLUMN seed_days, DROP COLUMN stall_hours; ALTER TABLE release_blocks DROP COLUMN expires_at; DELETE FROM release_blocks WHERE reason = 'stalled'; ALTER TABLE release_blocks DROP CONSTRAINT release_blocks_reason_check; ALTER TABLE release_blocks ADD CONSTRAINT release_blocks_reason_check CHECK (reason IN ('operator', 'files', 'import')); DROP INDEX grabs_seeding_idx; ALTER TABLE grabs DROP COLUMN seeding, DROP COLUMN ratio, DROP COLUMN seed_released_at; UPDATE grabs SET end_reason = 'superseded' WHERE end_reason IN ('stalled', 'failed', 'abandoned', 'gone'); ALTER TABLE grabs DROP CONSTRAINT grabs_end_reason_check; ALTER TABLE grabs ADD CONSTRAINT grabs_end_reason_check CHECK (end_reason IN ('', 'superseded', 'imported', 'refused', 'held')); DROP TABLE download_interventions;