Skip to content

Conversation

@babs
Copy link
Member

@babs babs commented Dec 28, 2025

  • Replace dbmate with native Python implementation (saves ~39MB)
  • dbmate-compatible format (-- migrate:up / -- migrate:down)
  • Bootstrap detection for existing databases without schema_migrations
  • Auto-create schema on fresh databases
  • Initial migration (00000000000000) with base schema

Usage: DATABASE_URL="..." ./db_migrate.py
Helm: command: ["/app/.venv/bin/python", "/app/db_migrate.py"]

Tests:

  • 31 unit tests (99% coverage)
  • 3 E2E tests against real PostgreSQL

- Replace dbmate with native Python implementation (saves ~39MB)
- dbmate-compatible format (-- migrate:up / -- migrate:down)
- Bootstrap detection for existing databases without schema_migrations
- Auto-create schema on fresh databases
- Initial migration (00000000000000) with base schema

Usage: DATABASE_URL="..." ./db_migrate.py
Helm: command: ["/app/.venv/bin/python", "/app/db_migrate.py"]

Tests:
- 31 unit tests (99% coverage)
- 3 E2E tests against real PostgreSQL
@babs babs merged commit 2659274 into master Dec 28, 2025
1 check passed
@babs babs deleted the feat/db-migration-automation branch December 28, 2025 17:52
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.

2 participants