very minor

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-06-25 16:13:36 +02:00
parent 5645b3440a
commit d4593b00ce
1 changed files with 2 additions and 3 deletions

View File

@ -188,13 +188,12 @@ class ColumnDefinitions {
definition.append( ' ' ).append( identityColumnString );
}
else {
final String columnType;
columnType = column.getSqlType( metadata );
final String columnType = column.getSqlType( metadata );
if ( column.getGeneratedAs() == null || dialect.hasDataTypeBeforeGeneratedAs() ) {
definition.append( ' ' ).append( columnType );
}
String collation = column.getCollation();
final String collation = column.getCollation();
if ( collation != null ) {
definition.append(" collate ").append( dialect.quoteCollation( collation ) );
}