Coder Social home page Coder Social logo

koji-k / grails3-database-migration-debug Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 186 KB

This repository is a sample that to check the problem about Grails database migration plugin.

JavaScript 1.24% CSS 66.41% Groovy 19.02% Shell 8.97% Batchfile 4.36%

grails3-database-migration-debug's Introduction

This repository is a sample that to check the problem about Grails database migration plugin.
Grails version is 3.2.4.

For detail, please refer to this issue dbm-gorm-diff fails after the second time.

This sample application uses PostgreSQL9.3.
You can run PostgreSQL 9.3 on Docker quickly with following commands.

# Run and Install PostgreSQL 9.3 instance.
docker run --name some-postgres -p 5432:5432 -e POSTGRES_PASSWORD=password -d postgres:9.3.15

# Create sample database. please input "password" as password when psql asks passowrd you.
[user:/]$ docker run -it --rm --link some-postgres:postgres postgres:9.3.15 psql -c 'CREATE DATABASE migrationtest' -h postgres -U postgres
Password for user postgres: [PLEASE ENTER HERE "password"]
CREATE DATABASE
[user:/]$ 

Then, pull this repository and execute followings.

# create tables for migration plugin
grails dbm-update

# create changeset first time and migrate.
dbm-gorm-diff 1.groovy --add
dbm-update

# execute dbm-gorm-diff again. THIS
dbm-gorm-diff

show following error message.

Command execution error: liquibase.command.CommandExecutionException: java.lang.ClassCastException: liquibase.statement.DatabaseFunction cannot be cast to java.lang.Integer
:dbmGormDiff FAILED

FAILURE: Build failed with an exception.

grails3-database-migration-debug's People

Watchers

James Cloos avatar koji avatar

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.