Re: Schema migration in CakePHP-3

2015-03-10 Thread Gaurav Kumar
Thank you. On Monday, March 9, 2015 at 10:33:28 AM UTC+5:30, Dakota wrote: > > How do you delete the table? If you simply run DROP TABLE too; then the > migration won't run again since Phinx still believes that the migration has > run. To undo a migration you need to run bin/cake migrations roll

Re: Schema migration in CakePHP-3

2015-03-08 Thread Dakota
How do you delete the table? If you simply run DROP TABLE too; then the migration won't run again since Phinx still believes that the migration has run. To undo a migration you need to run bin/cake migrations rollback -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter ht

Re: Schema migration in CakePHP-3

2015-03-08 Thread Dakota
How do you delete the table? If you simply run DROP TABLE too; then the migration won't run again since Phinx still believes that the migration has run. To undo a migration you need to run bin/cake migrations rollback -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter ht

Re: Schema migration in CakePHP-3

2015-03-08 Thread Gaurav Kumar
On first run of the command "./bin/cake migrations migrate --plugin PluginName" the die() works, but if the table has been deleted and again running the migrate command the die() is not working. On Thursday, March 5, 2015 at 6:54:52 PM UTC+5:30, José Lorenzo wrote: > > Can you put a die() in you

Re: Schema migration in CakePHP-3

2015-03-05 Thread José Lorenzo
Can you put a die() in your migration file to see if it is being read? On Thursday, March 5, 2015 at 11:47:30 AM UTC+1, Gaurav Kumar wrote: > > Hello Everyone, > > I am trying to create a custom plugin for CakePHP-3.0 where I want to > include schema migrations [database sql queries] so that whe

Schema migration in CakePHP-3

2015-03-05 Thread Gaurav Kumar
Hello Everyone, I am trying to create a custom plugin for CakePHP-3.0 where I want to include schema migrations [database sql queries] so that when plugin gets installed eventually migrations for the same plugin will run and tables required by the plugin will get created in users database. I