DBZ-5489 add column comment to schema
This commit is contained in:
parent
2e0a9e8574
commit
ca009d8492
@ -379,6 +379,10 @@ protected void addField(SchemaBuilder builder, Table table, Column column, Colum
|
||||
fieldBuilder.optional();
|
||||
}
|
||||
|
||||
if (column.comment() != null) {
|
||||
fieldBuilder.doc(column.comment());
|
||||
}
|
||||
|
||||
// if the default value is provided
|
||||
if (column.hasDefaultValue() && defaultValue != null) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user