Mysql org.hibernate.tool.hbm2ddl.SchemaUpdate不向现有表定义添加新列

Mysql org.hibernate.tool.hbm2ddl.SchemaUpdate不向现有表定义添加新列,mysql,hibernate,migration,hibernate-5.x,hibernate-4.x,Mysql,Hibernate,Migration,Hibernate 5.x,Hibernate 4.x,我们最近从Hibernate4.3升级到Hibernate5.4 以前,我们使用以下方式调用SchemaUpdate new SchemaUpdate(sessionFactory.getConfiguration()).execute(false, true); 这将创建新表,并使用创建的任何新列更新现有表 在升级到Hibernate 5.4之后,我们将其更改为以下内容 schemaUpdate.execute(EnumSet.of(TargetType.DATABASE), metada

我们最近从Hibernate4.3升级到Hibernate5.4

以前,我们使用以下方式调用SchemaUpdate

 new SchemaUpdate(sessionFactory.getConfiguration()).execute(false, true);
这将创建新表,并使用创建的任何新列更新现有表

在升级到Hibernate 5.4之后,我们将其更改为以下内容

schemaUpdate.execute(EnumSet.of(TargetType.DATABASE), metadata, serviceRegistry);
这仍然会创建新表,但不会向现有表定义中添加任何新列

在以前的版本中,execute方法有一个doUpdate参数,它不确定在5.4中如何传递到schemaUpdate

感谢您的时间和支持