Git Product home page Git Product logo

Comments (5)

stevesaliman avatar stevesaliman commented on August 29, 2024

You should be able to use any Liquibase parameter starting with -- by simply including it in an action block. In your case something like the following should do the trick:

liquibase {
  activities {
    main {
      changeLogFile 'src/main/db/main.groovy'
      url project.ext.jdbcUrl
      username project.ext.jdbcUsername
      password project.ext.jdbcPassword
      diffTypes 'data'
    }
  }
}

from liquibase-gradle-plugin.

fsparv avatar fsparv commented on August 29, 2024

Ah I see where this is documented. Thanks for your patience. Another example in the usage section perhaps to highlight this mapping to -- parameters? I was low on patience and scanned past it in the 3 paragraphs of solid text because I didn't know I was looking for an answer provided by generalized feature. I was looking for (and doing find in page for) "diff" and "difftype" Technically the examples are doing that but things like url, username and password are so ubiquitously required for database stuff it wasn't obvious (to me at least) that this was actually mapping to the command line params.

from liquibase-gradle-plugin.

stevesaliman avatar stevesaliman commented on August 29, 2024

I tried to clarify this a bit. I attempted to make the README a little more clear without having to re-document all the options that Liquibase supports, especially since this list could change over time.

from liquibase-gradle-plugin.

TechGamer0 avatar TechGamer0 commented on August 29, 2024

Hi I tried adding diffTypes 'data' in the liquibase activity block, but it says unknown paramater. And also how can I add tablespace for databasechangelog generated using diffChangeLog. Appreciate any help. Thanks in advance

from liquibase-gradle-plugin.

stevesaliman avatar stevesaliman commented on August 29, 2024

I had a typo in the original comment above regarding diffTypes - case counts. I've fixed that comment, and if you have it specified with a capital T, it should run.

As for tablespaces, I'm not sure how Liquibase decided what to do with tablespaces, but since it only applies to certain database types, I wouldn't be too surprised if Liquibase didn't support it. You might try asking that question in the Liquibase forums. Whatever it supports, the plugin supports.

I'm sorry it took so long to respond to the question,

Steve

from liquibase-gradle-plugin.

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.