Code Monkey home page Code Monkey logo

play-liquibase's People

Contributors

7uc0 avatar elegoulven avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

play-liquibase's Issues

Config: everything not "true" is "false"

Play's config parser accepts hash signs as values for properties. This means that comments should be on a line of their own. I didn't know that, so I wrote:

liquibase.active=true # some comment here

The result was that the property value was "true # some comment here", which is not equal to "true", hence is interpreted as "false". It took my quite some head scratching to figure out why this was happening. As a solution, I would add a bit of code like this to the LiquibasePlugin class:

if (autoupdate == null) return;
if (!"true".equals(autoupdate) && !"false".equals(autoupdate)) {
    throw new ConfigurationException("Invalid value for liquibase.autoupdate: " + autoupdate);
}

That way invalid values are much easier to debug.

commands.py causes error on every play command

Liquibase's commands.py causes an error to be shown on every play command:

~ !! Error while loading /home/sybren/project/modules/liquibase-2.3/commands.py: name 'play_command' is not defined

It's not a blocking error, but it's also not something I want to see. Removing or editing the commands.py works, until the next "play dependencies" command, which will reinstall the buggy file.

See the commands.py that's shipped with Play's "secure" module for a structure that does work.

Tested on Liquibase plugin version 2.3 and Play 1.2.3

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.