cakephpdatabase-migrationrollbackphinx

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.


Solution

  • Finally i got the answer,

    here we go

    bin/cake migrations rollback -t <version>
    

    Thanks Anyways to SO :)