Skip to content

Verbose mode #784

@kvch

Description

@kvch

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions