JeffreyWay / Laravel-4-Generators

Rapidly speed up your Laravel workflow with generators
https://packagist.org/packages/way/generators
MIT License
27 stars 9 forks source link

generate migration alter table #435

Closed scott-davidjones closed 9 years ago

scott-davidjones commented 9 years ago

is there a way a migration can be created to alter a table? or can this be added?

I have a case where a column type needs changing from INT to DECIMAL but cant use a migrate refresh due to not wanting to loose the existing data.

Can a migration cater for this? is it possible in the generators?

jonathanpmartins commented 9 years ago

Don't modify what you already have. Make a new migrate to change it.

scott-davidjones commented 9 years ago

I can do that but it kind of defeats the point of it being a generator if it doesn't cater for alter scripts..