Skip to content

Feature: redo command (like Rails db:migrate:redo) #205

Closed
@tohagan-tmr

Description

@tohagan-tmr

Please add a migrate redo command so that ...

$ migrate redo       

... runs migrate down 1 and if that succeeds it runs migrate up 1 and ...

$ migrate redo 3 

... runs migrate down 3 and if that succeeds it runs migrate up 3

I know, I know .... I've asked a lot this week! But I think this would be a great addition and should be dead easy to implement.

I've recently been using Ruby of Rails which was the one of the first (I think the first) frameworks to support DB migrations. They support a rails db:migrate:redo (ref) command. I found this is very convenient when coding as I'm constantly typing the two commands. I can just write my own shell script to do the same but I think it really it belongs with the migrate command.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions