pgroll icon indicating copy to clipboard operation
pgroll copied to clipboard

Verbose mode

Open kvch opened this issue 7 months ago • 0 comments

We would like to add a new flag to start, complete and rollback named verbose. When this flag is set, pgroll prints what operations it is running to show users what is going on exactly.

Example output for start:

$ pgroll start --verbose
Starting migration my_migration
Executing operation #1: create_table
New table created: my_table
Executing operation #2: create_index
New index created: my_index on my_table
Executing operation #3: add_column
New column added: my_new_column
New schema is ready public_my_migration
Backfill process has started
Backfill process is done

Example output for rollback:

$ pgroll rollback --verbose
Rolling back migration my_migration
Rolling back operation #3: add_column
New column dropped: my_new_column
Rolling back operation #2: create_index
Index dropped: my_index on my_table
Rolling back operation #1: create_table
Table dropped: my_table
Schema public_my_migration is dropped

kvch avatar Apr 08 '25 11:04 kvch