英文:
Retire Custom entity
问题
有一个新定制的实体,但业务不打算在将来使用它,而且代码已经合并到更高的环境中。我想要废除这个定制实体。请问我们如何实现这一目标?我知道有"deprecated"(已弃用)这个选项,但这只能用于实体中存在的列。这并不适用,因为我想要废除整个实体。请提供建议。
英文:
There is a newly customized new entity, but business doesn't want to use it in future and code has been merged into higher environments. I want to retire this customized entity. May I know how can we achieve this? I know about deprecated but we can use this for column present in the entities. This won't help because I want to retire whole entity. Please suggest.
答案1
得分: 5
If this has not made it to production, the recommendation is to remove the entity and drop the lower environment databases.
如果尚未进入生产环境,建议删除实体并删除较低环境的数据库。
If in production or dropping is not an option:
如果在生产环境中或者删除不是一个选项:
You can implement the IDatamodelUpgrade plugin and write
IDatamodelChange upgrade triggers to synchronize the database with the
data model. Guidewire supports the functions dropTable and dropColumn
to assist in this process.
您可以实现IDatamodelUpgrade插件并编写IDatamodelChange升级触发器以同步数据库与数据模型。 Guidewire支持dropTable和dropColumn函数来帮助执行此过程。
Since this sounds like a first-time data-model update, I do recommend opening a case with Guidewire Support to review your update.
由于这似乎是第一次数据模型更新,我建议您与Guidewire支持团队联系以审查您的更新。
Quoted documentation is in the Guidewire docs:
https://docs.guidewire.com/cloud/pc/202302/config/config/topics/c_eb2317371.html
引用的文档位于Guidewire文档中:
https://docs.guidewire.com/cloud/pc/202302/config/config/topics/c_eb2317371.html
Please pay attention to the warning in the docs as well:
请注意文档中的警告:
WARNING: Be very careful of making changes to the data model on a live
production database. Some changes might invalidate your installation.
警告:在活动的生产数据库上进行数据模型更改时要非常小心。某些更改可能会使您的安装无效。
英文:
If this has not made it to production, the recommendation is to remove the entity and drop the lower environment databases.
If in production or dropping is not an option:
> You can implement the IDatamodelUpgrade plugin and write
> IDatamodelChange upgrade triggers to synchronize the database with the
> data model. Guidewire supports the functions dropTable and dropColumn
> to assist in this process.
Since this sounds like a first time data-model update, I do recommend opening a case with Guidewire Support to review your update.
Quoted documentation is in the Guidewire docs:
https://docs.guidewire.com/cloud/pc/202302/config/config/topics/c_eb2317371.html
Please pay attention to the warning in the docs as well:
> WARNING: Be very careful of making changes to the data model on a live
> production database. Some changes might invalidate your installation.
答案2
得分: 0
你尝试使用 remove()
函数来撤销该实体吗?这个方法是为通常不与其他实体关联的简单自定义实体设计的。因此,在使用 remove()
函数之前,请确保您的自定义实体是否与其他实体关联。谢谢。
英文:
Did you try using remove()
function to retire the entity. This method is designed for simple custom entities which are normally not associated with other entities. So please do check if your custom entity is associated other entities before using remove()
function. Thanks.
答案3
得分: 0
如果您不打算使用它,并且此表没有任何行,您可以使用IDataModelUpgrade触发器并编写自定义触发器来删除表和列。
英文:
If you are not going to use it and there are no rows against this table, you could use the IDataModelUpgrade trigger and write a custom trigger to drop the table and column.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论