From 6aa8b9dc8c141ac4596074e395f4e0353b020dc0 Mon Sep 17 00:00:00 2001 From: Anthony Volk Date: Tue, 10 Mar 2026 19:05:01 +0100 Subject: [PATCH 1/2] fix: Pass --reset flag to init.py in db-reset workflow Without --reset, init.py takes the idempotent path and skips dropping existing tables. Alembic then fails with "relation already exists" because the tables were created outside of Alembic but alembic_version was never populated. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/db-reset.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/db-reset.yml b/.github/workflows/db-reset.yml index f489172..82f7ff5 100644 --- a/.github/workflows/db-reset.yml +++ b/.github/workflows/db-reset.yml @@ -89,7 +89,7 @@ jobs: LOGFIRE_ENVIRONMENT: prod run: | echo "Resetting database tables..." - echo "yes" | uv run python scripts/init.py + echo "yes" | uv run python scripts/init.py --reset - name: Seed database (lite) if: ${{ github.event.inputs.mode == 'lite' }} From cd44f6ce0375c877f5b1d28156d35fb3e09b97b9 Mon Sep 17 00:00:00 2001 From: Anthony Volk Date: Tue, 10 Mar 2026 19:19:04 +0100 Subject: [PATCH 2/2] docs: Add changelog fragment for db-reset fix Co-Authored-By: Claude Opus 4.6 --- changelog.d/db-reset-flag.fixed | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/db-reset-flag.fixed diff --git a/changelog.d/db-reset-flag.fixed b/changelog.d/db-reset-flag.fixed new file mode 100644 index 0000000..ca9d182 --- /dev/null +++ b/changelog.d/db-reset-flag.fixed @@ -0,0 +1 @@ +Add missing --reset flag to db-reset workflow so init.py actually drops existing tables before recreating them.