在回滚块中进行更正是否会影响 liquibase 变更集的校验和?
Does making a correction in the rollback block affect the checksum of a liquibase changeset?
发现了一些小错别字,例如:
<rollback>
<delete tableName="velocity_template">
<where>id in ("from-address.vm", "myco.from-address.vm")</where>
</delete>
</rollback>
至
<rollback>
<delete tableName="velocity_template">
<where>id in ('from-address.vm', 'myco.from-address.vm') </where>
</delete>
</rollback>
是否可以在不需要回滚和重新应用变更集的情况下更正这些?
这里的文档并没有具体说明回滚块,无论是哪种方式:http://www.liquibase.org/2009/03/what-effects-changeset-checksums.html
我的本地测试表明回滚块不是校验和计算的一部分。
回滚块不包含在校验和中,请参阅:
http://forum.liquibase.org/topic/fixing-and-enforcing-liquibase-rollbacks
但即使它们是,您也可以使用 "validCheckSum" 子标签,这是更新变更集 post-factum,w/o 使其中断的通用方法已经应用它的数据库。
发现了一些小错别字,例如:
<rollback>
<delete tableName="velocity_template">
<where>id in ("from-address.vm", "myco.from-address.vm")</where>
</delete>
</rollback>
至
<rollback>
<delete tableName="velocity_template">
<where>id in ('from-address.vm', 'myco.from-address.vm') </where>
</delete>
</rollback>
是否可以在不需要回滚和重新应用变更集的情况下更正这些?
这里的文档并没有具体说明回滚块,无论是哪种方式:http://www.liquibase.org/2009/03/what-effects-changeset-checksums.html
我的本地测试表明回滚块不是校验和计算的一部分。
回滚块不包含在校验和中,请参阅:
http://forum.liquibase.org/topic/fixing-and-enforcing-liquibase-rollbacks
但即使它们是,您也可以使用 "validCheckSum" 子标签,这是更新变更集 post-factum,w/o 使其中断的通用方法已经应用它的数据库。