Skip to content

db-reset workflow fails: missing --reset flag causes 'relation already exists' #110

@anth-volk

Description

@anth-volk

Problem

The db-reset.yml workflow fails with relation "dynamics" already exists because scripts/init.py is called without the --reset flag. Without it, init.py takes the idempotent (non-destructive) path — it skips dropping existing tables, then Alembic tries to create tables that already exist.

Root cause

Line 92 of .github/workflows/db-reset.yml:

echo "yes" | uv run python scripts/init.py

Should be:

echo "yes" | uv run python scripts/init.py --reset

Impact

The "Reset production database" workflow is completely broken — it cannot reset the database if any tables already exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions