GithubHelp home page GithubHelp logo

Comments (6)

Wisser avatar Wisser commented on August 23, 2024 1

OMG, now I see that too. Please excuse my temporary blindness.

It's good that there is no need to fall back to "value" attribute. That would probably cause problems with other DBMS. Liquibase can obviously handle a date in the format it expects correctly.

I will correct this ASAP. I plan to release a new version at the end of the week. This issue will be fixed in the new version too.

from jailer.

Wisser avatar Wisser commented on August 23, 2024

Thanks for the issue report.

According to the documentation page:
https://docs.liquibase.com/change-types/nested-tags/column.html
Liquibase expects something like 'YYYY-MM-DDThh:mm:ss' as the value of a "valueDate" attribute.

This is not quite what Jailer generates. Could you please check if the following can be imported?

<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.0.xsd http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<changeSet id="JailerExport" author="testuser">
<insert tableName="rates">
<column name="id" value="1"/>
<column name="created" valueDate="2019-04-26T15.47.11"/>
<column name="modified" valueDate="2019-04-26T15.47.11"/>
<column name="version" valueNumeric="0"/>
<column name="effective_date" valueDate="2019-01-01T00.00.00"/>
<column name="rate" valueNumeric="0.24"/>
</insert>
</changeSet>
</databaseChangeLog>

Thanks in advance,
Ralf

from jailer.

JoshBargar avatar JoshBargar commented on August 23, 2024

The following error is logged:

[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:4.16.1:update (default-cli) on project test-liquibase: 
[ERROR] Error setting up or running Liquibase:
[ERROR] liquibase.exception.MigrationFailedException: Migration failed for changeset sql/1.0/00017-changes.xml::JailerExport::testuser:
[ERROR]      Reason: liquibase.exception.DatabaseException: Unknown column '26T15.47.11' in 'field list' [Failed SQL: (1054) INSERT INTO testdb.rates (id, created, modified, version, effective_date, rate) VALUES ('1', 2019-04-26T15.47.11, 2019-04-26T15.47.11, 0, 2019-01-01T00.00.00, 0.24)]

This changeset is successful, though:

<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.0.xsd http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<changeSet id="JailerExport" author="testuser">
<insert tableName="rates">
<column name="id" value="1"/>
<column name="created" valueDate="2019-04-26T15:47:11"/>
<column name="modified" valueDate="2019-04-26T15:47:11"/>
<column name="version" valueNumeric="0"/>
<column name="effective_date" valueDate="2019-01-01T00:00:00"/>
<column name="rate" valueNumeric="0.24"/>
</insert>
</changeSet>
</databaseChangeLog>

from jailer.

Wisser avatar Wisser commented on August 23, 2024

Where is the difference between the changeSet I asked you to test and this one?

from jailer.

JoshBargar avatar JoshBargar commented on August 23, 2024

The valueDate pattern you provided separates the time by . whereas the one that passed uses :.

from jailer.

Wisser avatar Wisser commented on August 23, 2024

Fixed in Release 14.2

from jailer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.