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
the method Comment in schema not migrate db column comment like MySQL #1546
Comments
Hey @luckylsx, the We're working on the new migration framework for ent and plan to add support for this. |
in most case, sql field comment is needed, |
I'm agree with you, this |
Ent's team can take it now, wait for this fix @a8m |
The issue was resolved with: https://entgo.io/docs/schema-annotations#database-comments. Update your Ent version to master, and check out this tweet to see an example: https://twitter.com/entgo_io/status/1607394587009589248 |
Hi, first of all, thanks the ent!
When I migrate the schema, I found the content in Comment defined was not migrate the DB。
the schema define like following:
But after the table migrate, the DDL like this:
Expect is:
I want to know How can I migrate with comment or this part is not support?
Thanks!
The text was updated successfully, but these errors were encountered: