Skip to content

Add command to rollback migration #547

Closed

Description

@ElijahAhianyo

It would be nice to have a command that rolls back to a previous version. This should work like the git reset <hash> command.

Syntax-wise, we could use the git style (which is what Django uses), where we specify the file name to rollback to:

cot migration rollback m_0001

and support another variant of the git-style (which Laravel uses), where you specify the number of migrations to roll back.

cot migrations rollback --step 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cliCrate: cot-cli (issues and Pull Requests related to Cot CLI)enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions