1

I have a service builder module whose table definitions need to be changed. In my case I've modified the portlet-model-hints.xml file in the service's /src/main/resources directory to increase the length of a String field from 75 to a higher number. When I run blade gw cleanServiceBuilder, the old tables are dropped. When I then run blade gw buildService and then deploy the module with blade deploy, the new sql scripts are not executed (or something similar -- I can't find the new tables in my database). Has anyone else had this problem?

4

1 回答 1

2

可以通过手动删除servicecomponentrelease_表中的一些行来修复它。特别是,在清理服务生成器之后,servicecomponent表中仍然会有一行包含服务的buildNamespacebuildNumber。在release_其中将有一行与servletContextName相关schemaVersion模块的和。这两行可以手动删除,下一次部署将创建新表。

于 2018-02-14T13:05:52.993 回答