Closed scott-davidjones closed 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?
Don't modify what you already have. Make a new migrate to change it.
I can do that but it kind of defeats the point of it being a generator if it doesn't cater for alter scripts..
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?