-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat: migrator support table comment #6225
Conversation
b40380d
to
97e2cc1
Compare
Maybe better to have an API like |
Okay, I'll make some changes. |
Thank you, we can add a |
I've finished developing the tableType := g.db.Migrator().TableType(tableName)
log.Printf("table catalog: %s", tableType.Catalog())
log.Printf("table schema: %s", tableType.Schema())
log.Printf("table name: %s", tableType.Name())
log.Printf("table type: %s", tableType.Type())
engine, ok := tableType.Engine()
log.Printf("table engine: %s ok:%v", engine, ok)
comment, ok = tableType.Comment()
log.Printf("table comment: %s ok:%v", comment, ok)
log.Printf("tableType: %+v", tableType) |
95b99ed
to
b067c10
Compare
LGTM |
What did this pull request do?
migrator support table comment.
User Case Description