Skip to content

refactor: deduplicate DB schema in e2e seeders#12

Merged
sleipi merged 1 commit into
mainfrom
refactor/deduplicate-db-schema
May 12, 2026
Merged

refactor: deduplicate DB schema in e2e seeders#12
sleipi merged 1 commit into
mainfrom
refactor/deduplicate-db-schema

Conversation

@sleipi
Copy link
Copy Markdown
Owner

@sleipi sleipi commented May 12, 2026

Summary

  • Replace inline CREATE TABLE statements in both e2e seeders (seed-db.ts, seed-empty-db.ts) with a call to migrate() from src/db/migrations.ts
  • Removes ~120 lines of duplicated schema definitions, making migrations.ts the single source of truth
  • Seeders now also get indexes automatically, bringing e2e tests closer to production behavior

@sleipi sleipi added the enhancement New feature or request label May 12, 2026
@sleipi sleipi merged commit 92efc51 into main May 12, 2026
6 checks passed
@sleipi sleipi deleted the refactor/deduplicate-db-schema branch May 12, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant