Skip to content

chore: add support for verbose flag to the migration tool to view successful migrations - #2769

Open
annabkr wants to merge 4 commits into
masterfrom
annabaker/auth-1574-make-migrate_test-print-applied-migration-names
Open

chore: add support for verbose flag to the migration tool to view successful migrations#2769
annabkr wants to merge 4 commits into
masterfrom
annabaker/auth-1574-make-migrate_test-print-applied-migration-names

Conversation

@annabkr

@annabkr annabkr commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Chore

What is the current behavior?

When running make migrate_test, a successful migration produces no output.

This is because migrate installed a no-op logger at any non-debug level. This make command inherited the test.env file which defaults to WARN level. DEBUG was too noisy because it prints every SQL statement and two full migration status tables.

What is the new behavior?

When running make migrate_test, the name of each applied migration is output:

> add_my_table
> add_my_other_table
Successfully applied 2 migrations.

If there are no migrations to run, when the --verbose flag is provided we now see:

Migrations already up to date, nothing to apply
0.0245 seconds

Added:

  • A --verbose flag on the migrate command, which prints progress messages to stdout. It does not print SQL or JSON (that was tried, but human readability was an issue due to the JSON formatter mangling output).
  • The migrate_test Make target passes in --verbose, and our helper script forwards it to the migrate command.

Additional context

AUTH-1574

@annabkr
annabkr marked this pull request as ready for review September 1, 2026 02:54
@annabkr
annabkr requested a review from a team as a code owner September 1, 2026 02:54
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