Archon/migrations/018_fix_workflow_status_default.sql
Cole Medin f2a0d029e7 SQLite-first docs, fix Postgres workflow_runs default, rebuild combined schema
- Fix workflow_runs.status DEFAULT from 'running' to 'pending' in Postgres
  (migration 018) to match SQLite and actual code flow
- Rebuild 000_combined.sql as clean final schema (7 tables, no stale columns,
  correct defaults, all indexes)
- Update all docs to present SQLite as the default, zero-setup option
- Mark PostgreSQL as optional/advanced in README, CLAUDE.md, and guides

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 11:23:59 -06:00

8 lines
409 B
SQL

-- Fix workflow_runs.status default to match SQLite and actual code flow
-- Version: 18.0
-- Description: The executor creates workflow runs as 'pending' then explicitly
-- sets them to 'running'. Migration 008 incorrectly set DEFAULT 'running'.
-- SQLite adapter already uses DEFAULT 'pending'. This aligns PostgreSQL.
ALTER TABLE remote_agent_workflow_runs
ALTER COLUMN status SET DEFAULT 'pending';