Skip to content

migrate-dev-db fails in its snapshot step with FOREIGN KEY constraint failed #616

Closed

Description

@Jacksondr5

While live-testing #615 on 2026-10-14, vp run migrate-dev-db, run from a worktree at 10ff79ab30, failed during its snapshot phase with FOREIGN KEY constraint failed. This happens before any migration runs, so it isn't caused by #615's migration 038. It fails the same way with the developer's real data as the source and with a live-test fixture home passed as --source.

The effect is that a migration can't be rehearsed on a copy of real data, which the j5-live-test skill asks for whenever a change adds a migration. For #615 the tester rehearsed on a copied fixture home instead. Details are in the test report, test-reports/j5code-reuse-known-share-name.md.

Not investigated yet. Likely a starting point: the copy's stand-down step deletes or rewrites rows that other rows still reference, for example schedules, peers or deliveries, while foreign keys are enforced.

Found by the GPT-6 Astra live tester; filed by Claude Opus 5.5 (Claude Code).

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