feat: add automated migrations pipeline and testing tools#151
Draft
jakebromberg wants to merge 2 commits intofeature/account-setup-email-capabilitiesfrom
Draft
feat: add automated migrations pipeline and testing tools#151jakebromberg wants to merge 2 commits intofeature/account-setup-email-capabilitiesfrom
jakebromberg wants to merge 2 commits intofeature/account-setup-email-capabilitiesfrom
Conversation
60b7e55 to
1b9c0d5
Compare
added 2 commits
February 12, 2026 13:57
- Add database indexes for frequently-queried columns: - flowsheet: show_id, album_id, rotation_id - show_djs: composite (show_id, dj_id) and dj_id - bins: dj_id, album_id - Add migration infrastructure to CI/CD: - Dockerfile.migrate for running drizzle-kit migrations - run-migrations GitHub Action - Migration jobs in deploy-base.yml workflow - Migrations tagged by count (e.g., migrate:0028) - Fix orphaned migration file: - Rename 0024_anonymous_devices.sql to 0028 - Add missing journal entry and snapshots
Add comprehensive migration testing infrastructure: - Static analysis (lint-migrations.js): Detects dangerous patterns like missing CONCURRENTLY, NOT NULL without DEFAULT, missing IF NOT EXISTS guards, and destructive operations - Rollback generator (generate-rollback.mjs): Auto-generates rollback SQL scripts from migrations with risk assessment and data loss warnings - Runtime estimation (estimate-migration.mjs): Estimates migration duration based on table sizes and operation types - Snapshot testing scripts: Create, load, and test migrations against production-like schema snapshots - Weekly CI workflow (migration-snapshot-test.yml): Automated testing against production snapshots every Sunday - CI integration: Added migration linting to PR checks Includes rollback files for migrations 0000-0028.
c209f9f to
ec2d7f5
Compare
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #150 (account setup email + capabilities). Split from #144 for easier review.
Note: ~8,200 of the additions are auto-generated Drizzle ORM snapshot files.
Test plan