Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rollback a specific migration in Cakephp?

I am working on migrations in Cakephp3, I want to rollback a specific migration, I know how to rollback a previous migration by using the follow way:

bin/cake migrations rollback

But I couldn't find a way to rollback a specific migration.

Note: I am using phinx plugin for database migrations.

like image 631
Amrinder Singh Avatar asked Mar 11 '23 22:03

Amrinder Singh


1 Answers

Finally i got the answer,

here we go

bin/cake migrations rollback -t <version>

Thanks Anyways to SO :)

like image 82
Amrinder Singh Avatar answered Mar 20 '23 06:03

Amrinder Singh