[jOOQ/jOOQ#9425] Diff views (more comments)

This commit is contained in:
Lukas Eder 2019-11-04 12:33:17 +01:00
parent 3297daf04d
commit a0b74c2203
2 changed files with 6 additions and 1 deletions

View File

@ -244,7 +244,10 @@ final class DDL {
String tComment = table.getComment();
if (!StringUtils.isEmpty(tComment))
result.add(ctx.commentOnTable(table).is(tComment));
if (table.getType().isView())
result.add(ctx.commentOnView(table).is(tComment));
else
result.add(ctx.commentOnTable(table).is(tComment));
for (Field<?> field : sortIf(Arrays.asList(table.fields()), !configuration.respectColumnOrder())) {
String fComment = field.getComment();

View File

@ -495,6 +495,8 @@ package org.jooq.impl;