Skip to content

Tracking user info in schema_migrations #383

Open
@achanda

Description

@achanda

Is your feature request related to a problem? Please describe.
I am trying to use migrate in an internal project, one of our requirements is to be able to track which user applied a given migration and when.

Describe the solution you'd like

  1. Add two new columns to schema_migrations, one to track the user and another to track timestamp. The user can be extracted from connection information.
  2. Add an info subcommand that dumps information from that table.

Describe alternatives you've considered
Wrap migrate in a higher level abstraction and implement this functionality in the caller. However, I believe this feature might be beneficial for the community.

Additional context
For our use case, we need this feature only for Postgres. I am happy to go ahead and implement this if it sounds like something worth merging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions