ALTER TABLE acquisition_settings DROP COLUMN import_root; DELETE FROM release_blocks WHERE reason = 'import'; 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')); DROP INDEX grabs_live_idx; UPDATE grabs SET end_reason = 'superseded' WHERE end_reason IN ('imported', 'refused', 'held'); ALTER TABLE grabs DROP CONSTRAINT grabs_end_reason_check; ALTER TABLE grabs ADD CONSTRAINT grabs_end_reason_check CHECK (end_reason IN ('', 'superseded')); ALTER TABLE grabs DROP COLUMN progress, DROP COLUMN import_state, DROP COLUMN import_reason, DROP COLUMN import_detail, DROP COLUMN import_forced, DROP COLUMN import_attempts, DROP COLUMN import_updated_at, DROP COLUMN imported_at, DROP COLUMN imported_files, DROP COLUMN destination;