-- Restore migration 026's predicate, then drop the column it depended on. -- -- Note the same pairing caveat 026's own down carries: this is only valid alongside a code -- rollback. `Upload::create` sends an ON CONFLICT predicate that must match the live index, so -- running this down against the current binary makes every keyed upload a runtime 500. DROP INDEX IF EXISTS upload_client_upload_id_key; CREATE UNIQUE INDEX upload_client_upload_id_key ON upload (client_upload_id) WHERE client_upload_id IS NOT NULL AND deleted_at IS NULL; ALTER TABLE upload DROP COLUMN IF EXISTS taken_down_by_host;