Skip to content

Remove MigrationStore interface indirection - #27

Merged
Igloczek merged 1 commit into
masterfrom
task/027-remove-migration-store-interface
Jun 30, 2026
Merged

Igloczek merged 1 commit into
masterfrom
task/027-remove-migration-store-interface

Conversation

@Igloczek

@Igloczek Igloczek commented Jun 30, 2026 •

Copy link
Copy Markdown
Collaborator

Implements tasks/027-remove-migration-store-interface.md from the ponytail audit backlog.

Goal

Type migrations against BunSQLiteRedbean directly instead of a single-implementor interface.

Scope

  • Remove or inline MigrationStore from src/db/schema/store-types.ts.
  • Update src/server/db-migrations.ts and src/db/schema/migration-helpers.ts to use the concrete store type.
  • Keep migration helper functions unchanged in behavior.

Acceptance criteria

  • MigrationStore interface deleted or unused.
  • bun run test:backend passes (schema.test.ts, upgrade.test.ts).
  • bun run build succeeds.

Depends on

Task 024.

Verification

bun run test:backend
bun run build
rg "MigrationStore" src

Audit reference

Finding #28 — MigrationStore interface.

@Igloczek

Copy link
Copy Markdown
Collaborator Author

/ponytail-review

Deleted MigrationStore interface indirection; direct BunSQLiteRedbean / bun:sqlite types.

Lean already. Ship.

4 files changed, 24 insertions(+), 43 deletions(-)

Type schema migrations against BunSQLiteRedbean directly and use
bun:sqlite Database in migration helpers. Deletes the single-implementor
MigrationStore interface (ponytail audit #28).
@Igloczek
Igloczek force-pushed the task/027-remove-migration-store-interface branch from 1929356 to ec60a6a Compare June 30, 2026 12:01
@Igloczek
Igloczek merged commit fcf4082 into master Jun 30, 2026
1 check passed
@Igloczek
Igloczek deleted the task/027-remove-migration-store-interface branch June 30, 2026 12:58
Igloczek added a commit that referenced this pull request Aug 8, 2026
…interface

Remove MigrationStore interface indirection
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