-- Reverse 0021_secret_key_versioning.

DROP INDEX IF EXISTS llm_endpoints_keyver_idx;
DROP INDEX IF EXISTS git_credentials_keyver_idx;
DROP INDEX IF EXISTS workspace_run_profiles_keyver_idx;
DROP INDEX IF EXISTS acp_agent_kind_config_files_keyver_idx;
DROP INDEX IF EXISTS acp_agent_kinds_keyver_idx;

ALTER TABLE acp_sessions             DROP COLUMN IF EXISTS sandbox_mode;
ALTER TABLE llm_endpoints            DROP COLUMN IF EXISTS key_version;
ALTER TABLE git_credentials          DROP COLUMN IF EXISTS key_version;
ALTER TABLE workspace_run_profiles   DROP COLUMN IF EXISTS key_version;
ALTER TABLE acp_agent_kind_config_files DROP COLUMN IF EXISTS key_version;
ALTER TABLE acp_agent_kinds          DROP COLUMN IF EXISTS key_version;

DROP TABLE IF EXISTS crypto_keys;
