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

Re : UpdateSQL ignores dbms type?

$
0
0
I'm using liquibase 3.3.2, run through maven.

I have some changesets that are ran on only one database type.  Sample:
<changeSet author="nthorn" id="1418685979642-17-hsql">
    <preConditions onFail="MARK_RAN">
        <dbms type="hsqldb" />
    </preConditions>
<createTable tableName="Message">
...
</createTable>
</changeSet>

They work just fine when liquibase runs against the database directly, but when I run updateSQL (with the properties setting "url : jdbc:sqlserver://localhost:1433;databaseName=my_db") I am getting this in the output SQL file:

-- Changeset ../ourApp/src/main/resources/changelogs/1.4.0-changelog.xml::1418685979642-17-hsql::nthorn
CREATE TABLE [Message] ( ... )
GO
INSERT INTO [DATABASECHANGELOG] (... , [COMMENTS], [EXECTYPE], [LIQUIBASE]) VALUES (... , 'createTable', '', 'EXECUTED', '3.3.2')
GO

So it looks to me like my precondition is failing, and I'm wondering if I might just not be telling liquibase the type of database it is addressing properly.


Thanks for the help Nathan,
Nate

Viewing all articles
Browse latest Browse all 2993

Trending Articles



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