-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated columns added to migrations file every time - any way to tell the migration to ignore single fields? #490
Comments
Update: I tried to do some debugging in In the short term, is there a way to mark this column as excluded from consideration when calculating the migration diff? |
Is there any update about this issue? |
Same problem. I've gone as far as to mimic the complete create statement produced by MySQL:
But no matter what I do I always end up with a migration.
|
You have to either add |
Thank you! MySQL didn't seem to accept |
I have a generated column in my entity
This works fine. However, every time I run
make:migration
(even with no new changes) a new migration file is created with the details of the generated columns. E.g. something like this:I guess this is because the migration diff cannot see details of the generated column?
Is there any way to
a) see/debug what the migration is comparing to what (to see if I just need to tweak the text in the columnDefinition)
b) to mark the generated column as "ignore during migration" so
make:migration
does not consider it when creating migrations?
The text was updated successfully, but these errors were encountered: