HHH-4457 SchemaUpdate fails on Sybase ASE 15 when a new column is added without a default value
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18245 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
0776dbab9a
commit
b50f0660ee
|
@ -321,6 +321,7 @@ public class Table implements RelationalModel, Serializable {
|
|||
String defaultValue = column.getDefaultValue();
|
||||
if ( defaultValue != null ) {
|
||||
alter.append( " default " ).append( defaultValue );
|
||||
}
|
||||
|
||||
if ( column.isNullable() ) {
|
||||
alter.append( dialect.getNullColumnString() );
|
||||
|
@ -329,8 +330,6 @@ public class Table implements RelationalModel, Serializable {
|
|||
alter.append( " not null" );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
boolean useUniqueConstraint = column.isUnique() &&
|
||||
dialect.supportsUnique() &&
|
||||
( !column.isNullable() || dialect.supportsNotNullUnique() );
|
||||
|
|
Loading…
Reference in New Issue