Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Error: changeSet -> preConditions and tagDatabase

$
0
0
I can not use changeSet > preConditions and tagDatabase! I do not understand why not use !

<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd
        http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
    
    <changeSet id="1" author="test">
        <preConditions onFail="MARK_RAN">
            <not><sequenceExists sequenceName="gen_test" /></not>
        </preConditions>
        
        <tagDatabase tag="v_1.0"/>
        <createSequence sequenceName="gen_test" />
    </changeSet>
</databaseChangeLog>


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>