-- Approvals were for API requests, which are gone; anything still waiting is cancelled. UPDATE `jobs` SET `state` = 'cancelled', `finished_at` = unixepoch() * 1000 WHERE `state` = 'pending_approval';--> statement-breakpoint UPDATE `benchmark_runs` SET `state` = 'cancelled', `finished_at` = unixepoch() * 1000 WHERE `state` = 'pending_approval';--> statement-breakpoint DELETE FROM `settings` WHERE `key` IN ('agent.guardrails', 'agent.tuning', 'hardware.overrides', 'runtimes.presetsSeeded', 'runtimes.cudaPresetSeeded', 'runtimes.intelPresetSeeded');--> statement-breakpoint DROP TABLE `agent_activity`;--> statement-breakpoint DROP TABLE `api_keys`;--> statement-breakpoint DROP TABLE `api_tokens`;--> statement-breakpoint DROP TABLE `benchmark_sweeps`;--> statement-breakpoint DROP TABLE `deployment_logs`;--> statement-breakpoint DROP TABLE `deployments`;--> statement-breakpoint DROP TABLE `runtimes`;--> statement-breakpoint ALTER TABLE `benchmark_runs` DROP COLUMN `deployment_id`;--> statement-breakpoint ALTER TABLE `benchmark_runs` DROP COLUMN `deployment_b_id`;--> statement-breakpoint ALTER TABLE `benchmark_runs` DROP COLUMN `resources`;--> statement-breakpoint ALTER TABLE `benchmark_runs` DROP COLUMN `sweep_id`;--> statement-breakpoint ALTER TABLE `benchmark_runs` DROP COLUMN `requested_by_token_id`;--> statement-breakpoint ALTER TABLE `benchmark_runs` DROP COLUMN `requested_by`;--> statement-breakpoint ALTER TABLE `benchmark_runs` DROP COLUMN `time_limit_s`;--> statement-breakpoint ALTER TABLE `jobs` DROP COLUMN `requested_by_token_id`;--> statement-breakpoint ALTER TABLE `jobs` DROP COLUMN `requested_by`;--> statement-breakpoint ALTER TABLE `models` DROP COLUMN `requested_by_token_id`;--> statement-breakpoint ALTER TABLE `models` DROP COLUMN `requested_by`;--> statement-breakpoint ALTER TABLE `worker_state` DROP COLUMN `docker`;