chore: standardize executor type naming to kebab-case (#209)

This commit is contained in:
Solomon
2025-07-16 16:33:27 +01:00
committed by GitHub
parent 471d28defd
commit 5e60e65e27
8 changed files with 42 additions and 20 deletions

View File

@@ -0,0 +1,20 @@
-- Migration to update executor type names from snake_case/camelCase to kebab-case
-- This handles the change from charmopencode -> charm-opencode and setup_script -> setup-script
-- Update task_attempts.executor column
UPDATE task_attempts
SET executor = 'charm-opencode'
WHERE executor = 'charmopencode';
UPDATE task_attempts
SET executor = 'setup-script'
WHERE executor = 'setup_script';
-- Update execution_processes.executor_type column
UPDATE execution_processes
SET executor_type = 'charm-opencode'
WHERE executor_type = 'charmopencode';
UPDATE execution_processes
SET executor_type = 'setup-script'
WHERE executor_type = 'setup_script';