Files
crypto_trader/scripts/add_running_column.sql

9 lines
425 B
MySQL
Raw Permalink Normal View History

-- Migration: Add running column to strategies table
-- This separates "running manually" state from "enabled for Autopilot" state
ALTER TABLE strategies ADD COLUMN IF NOT EXISTS running BOOLEAN DEFAULT FALSE;
-- Comment explaining the difference
COMMENT ON COLUMN strategies.enabled IS 'Available to Autopilot with custom params';
COMMENT ON COLUMN strategies.running IS 'Currently running manually (bypasses Autopilot)';