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 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 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 have created a Migration class under PluginName/config/Migrations/
>>
>> when I do "bin/cake migrations migrate --plugin pluginName" -- I am 
>> getting success message but when I check my database no table is created. 
>>
>> please find enclosed here with gist of migration class and output of the 
>> above command. 
>>
>> https://gist.github.com/aavrug/940634042245f9632d59
>>
>> Thank you. 
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to