Skip to content

refactor: remove legacy migration and reconciliation paths - #66

Merged
iamjr15 merged 3 commits into
mainfrom
refactor/legacy-migration-cleanup
Jul 25, 2026
Merged

refactor: remove legacy migration and reconciliation paths#66
iamjr15 merged 3 commits into
mainfrom
refactor/legacy-migration-cleanup

Conversation

@iamjr15

@iamjr15 iamjr15 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Collapse all historical SQL into one production-verified current-schema baseline.
  • Remove obsolete migration phases, Durable Object reconciliation, and sandbox workspace/snapshot transition paths.
  • Keep the three required workflows and make static checks run on both PRs and main pushes.

Architecture

The production database, Drizzle journal, and source schema now share one exact baseline. Runtime Durable Objects fail closed on schema mismatch instead of carrying release-time compatibility migrations. Daytona sandboxes use only the configured snapshot and workspace identity.

Decisions

  • Keep only 0000_current_schema.sql; Git retains historical migration history.
  • Reconcile the production Drizzle ledger atomically to that baseline.
  • Keep static checks, snapshot publication, and audit archival because each owns a distinct production responsibility.
  • Remove migration exceptions, raw phases, snapshot upgrades, workspace transitions, and DO reconciliation endpoints.

Verification

  • pnpm db:migrate -- --dry-run
  • pnpm db:generate
  • pnpm typecheck (clean forced rebuild)
  • pnpm lint
  • pnpm build
  • pnpm architecture:check
  • pnpm deadcode
  • actionlint on all workflows
  • git diff --check

iamjr15 added 3 commits July 25, 2026 18:15
Collapse the database to one verified current-schema baseline.
Delete historical SQL and obsolete reconciliation contracts.
Enforce exact runtime state and keep CI scoped to affected surfaces.
@iamjr15
iamjr15 merged commit 1859b26 into main Jul 25, 2026
5 checks passed
@iamjr15
iamjr15 deleted the refactor/legacy-migration-cleanup branch July 25, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant