Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6476991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:53:35+00:00 2026-05-25T06:53:35+00:00

I have been using the Grails database-migration plugin during development of my application, and

  • 0

I have been using the Grails database-migration plugin during development of my application, and really like its functionality. (Grails 1.3.7, database-migration 1.0)

The problem:
I am constrained that all deployments must occur via Debian packages containing my application. It will be installed by another group who are competent admins, but not programmers in any sense of the word. Thus, it is not possible for me to migrate the database schema as indicated in typical workflow scenarios.

The question:
What scripts/classes/??? do I need to bundle or depend on in the package to be able to execute the commands:

grails -Dgrails.env=$TARGET dbm-update

and

grails -Dgrails.env=$TARGET dbm-changelog-sync

and

grails -Dgrails.env=$PROD dbm-diff $PROMOTION_ENV

from my debian/postinst script?

I’ve tried installing Grails, making the database-migration plugin a runtime dependency, and including the Dbm* scripts… but haven’t had success. The closest I’ve come is that Grails complains that I’m not in the root of a grails applicatoin when I attempt to run one of the scripts.

Can this be done, or can anyone provide a good alternative that hopefully won’t cause me to need to learn a whole new migration metaphor?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:53:36+00:00Added an answer on May 25, 2026 at 6:53 am

    Those three scripts are wrappers for the corresponding Liquibase actions. There are some Grails-specific scripts, e.g. dbm-gorm-diff, which creates a changelog between your code and a database, but that’s a developer script that doesn’t apply here.

    So I’d go with straight Liquibase. The invocations are more verbose since you need to specify the connect information on the commandline (in Grails I can get that from the DataSource for you) but that should be easy to script. All you need is the Liquibase jar file in the classpath and that can also easily be added to the scripts.

    The one other downside is that you’ll be working in traditional Liquibase XML instead of Groovy-based migration scripts, so there’s no looping, if/then checks, etc. But as long as you have fairly standard migrations to run it should be fine.

    This is a different approach than using the plugin, but the plugin supports XML-based changelogs, so you can add changelogs generated in these scenarios to the ones you create (if that makes sense for your workflow).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using Grails for the past few months and I really like
I have been working on the project where application is using grails 1.2.2.... Now
I have been using Grails for last 3 weeks (learning and working). I have
I'm developing a Grails (Version 1.3.3) Web-Application using the Grails Spring-Security Plugin, Spring-Security-Core-1.0.1 (which,
I have been using VS2010 without any issues, always on the same application. Suddenly
I have been working with a project which is using grails / hibernate with
I'm using Grails and I have a local-plugin (that I wrote) that I'm using
I have been using WPF and its built in validation controls for quiet sometime.
I have developed a grails/groovy application for a legacy database which has user maintenance
I have been using a mp3 file in my application for over 3 weeks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.