Skip to content

Feat: migration helper#4

Merged
Maximus7474 merged 10 commits into
mainfrom
feat/migration-helper
Apr 24, 2026
Merged

Feat: migration helper#4
Maximus7474 merged 10 commits into
mainfrom
feat/migration-helper

Conversation

@Maximus7474

@Maximus7474 Maximus7474 commented Apr 24, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR introduces continuous development tool that facilitates migration generation using drizzle-kit generate under the hood.
The process flow is the following when executing bun run db:migrate:

  1. drizzle-kit generates does it's checks
    • Checks for changes in the schema
    • Generates metadata for the changes and generates a .sql file with the changes
  2. scripts/migrate.ts follows up and checks the latest changes in the drizzle migration journal and converts any "unapplied" migrations to typescript payload used by the migration handler
  3. finally uses biome to cleanup the database package

Tests

  • Tested in development mode
  • Passes typecheck
  • Builds & runs on Windows
  • Builds & runs on Linux

@Maximus7474 Maximus7474 self-assigned this Apr 24, 2026
@Maximus7474 Maximus7474 added enhancement New feature or request breaking change Pull request introduces a breaking change to be considered labels Apr 24, 2026
@Maximus7474 Maximus7474 merged commit 458e770 into main Apr 24, 2026
@Maximus7474 Maximus7474 deleted the feat/migration-helper branch May 21, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Pull request introduces a breaking change to be considered enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant