DevOps

Enforcing and Automating Database Script Execution Before Application Startup

The Problem Every team eventually hits the same failure mode: a new build goes out, the application starts, and it immediately breaks because a required schema change wasn’t applied first. Maybe someone forgot to run the SQL script. Maybe it ran against the wrong environment. Maybe it ran after the app already tried to query […]

Akshat Mittal
Akshat Mittal
Read

Grails

How to apply liquibase change set conditionally

In our recent grails project, we were about to move to production so we decided to manage the database changes with liquibase. So we generated the changelog from development env by executing the command “grails generate-changelog /home/uday/projects/projectName/grails-app/migrations/changelog.xml” which contained all the table creation changesets. We updated the dbCreate=’none’ in all env. When we ran the […]

Grails

Grails Liquibase plugin: dbDiff tool workaround

The current project I am working on, is going through QA. At the same time development of the new features and bug fixing is on and we couldn’t afford to loose the test data. So synchronizing the state of the QA database with the development was becoming a pain. So we decided to use grails […]

Amit Jain
Amit Jain
Read