Skip to content

Commit

Permalink
HHH-18784 TableMigrator shouldn't alter column length if length is no…
Browse files Browse the repository at this point in the history
…t explicitly-set
  • Loading branch information
quaff committed Nov 1, 2024
1 parent 76f2243 commit b24a444
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static boolean hasMatchingType(Column column, ColumnInformation columnInformatio
}

static boolean hasMatchingLength(Column column, ColumnInformation columnInformation, Metadata metadata, Dialect dialect) {
if ( !column.getSqlType( metadata ).contains("(") ) {
if ( !column.isExplicit() || !column.getSqlType( metadata ).contains("(") ) {
// the DDL type does not explicitly specify a length,
// and so we do not require an exact match
return true;
Expand Down

0 comments on commit b24a444

Please sign in to comment.