DBZ-5489 add column comment to schema

This commit is contained in:
tjwornjs 2022-08-08 12:34:34 +09:00 committed by Jiri Pechanec
parent 2e0a9e8574
commit ca009d8492

View File

@ -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 {