我需要创建一个changelog前置条件,以便我可以暂停我的更改日志并启动我的grails应用程序,如果它失败。
我需要满足的条件在下表中,但我没有运气实现这样的先决条件。
我目前的尝试就在这里
<preConditions onFail="HALT" onFailMessage="Version cannot be installed, please install an earlier version.">
<not>
<sqlCheck expectedResult="0">select count(*) from someTable WHERE id = 'someId'</sqlCheck>
</not>
<sqlCheck expectedResult="0">select count(*) from someTable</sqlCheck>
</preConditions>
Table populated | Row exists | Action
Y | Y | Run change log
X | X | Run change log
Y | X | Don't run
X | X | Run change log