我运行简单的changeSet只在mssql上调用alter table 像这样:
<changeSet author="Foo" id="1">
<preConditions onFail="MARK_RAN" onSqlOutput="TEST">
<dbms type="mssql"/>
</preConditions>
<modifyDataType tableName="SAMPLE" columnName="FOO" newDataType="nvarchar"/>
</changeSet>
正在发生的是在所有数据库上创建了alter,这里有什么问题?
在日志中:
DEBUG 3/14/18 3:59 PM: liquibase: main.xml: ./schema/changelog111.xml::FOO : Projects::FOO: Running Changeset:./schema/changelog111.xml::FOO : Projects::FOO
DEBUG 3/14/18 3:59 PM: liquibase: main.xml: ./schema/changelog111.xml::FOO : Projects::FOO: Reading ChangeSet: ./schema/changelog111.xml::FOO : Projects::FOO
DEBUG 3/14/18 3:59 PM: liquibase: main.xml: ./schema/changelog111.xml::FOO : Projects::FOO: Executing Statement: liquibase.statement.core.ModifyDataTypeStatement@e98770d
INFO 3/14/18 3:59 PM: liquibase: main.xml: ./schema/changelog111.xml::FOO : Projects::FOO: SAMPLE.FOO datatype was changed to nvarchar
INFO 3/14/18 3:59 PM: liquibase: main.xml: ./schema/changelog111.xml::FOO : Projects::FOO: ChangeSet ./schema/changelog111.xml::FOO : Projects::FOO ran successfully in 2ms
日志中没有任何迹象:preConditions