I am trying to execute the following changeSet
in Liquibase, which should create an index. If the index does not exist, it should automatically fail:
<changeSet failOnError="false" author="sys" id="1"> <createIndex unique="true" indexName="key1" tableName="Table1"> <column name="name" /> </createIndex> </changeSet>
So far so good. The problem is that this changeSet
not in the DATABASECHANGELOG table and therefore is executed every time the libase is executed. According to the liquid packaging documentation and, for example, this answer from Nathen Voxland, I thought that the set of changes should be marked as an escape in the DATABASECHANGELOG table. Instead, it is not registered at all, and, as I said, it is executed every time every time a libase is executed (and fails every time again).
Am I missing something?
(I use MySQL as a DBMS)
source share