Skip to content

Command class should provide a way to list currently applied migrations from database #479

@jameshilliard

Description

@jameshilliard

I noticed that Command provides ways to list available migrations via history() and any pending migrations via heads(), however I don't see a method to get a list of migrations that have been applied.

From my understanding a list of applied migrations would not neccesarially identical to history() minus any heads() as one could have applied a migration to a database and then removed the migration file.

I think it would be useful to have an additional method(and maybe associated cli command) which shows the list of applied migrations as queried from the database for debugging purposes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions