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 8763977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:54:49+00:00 2026-06-13T15:54:49+00:00

We are working on a Grails-project, and exploring Flyway as a db-migration tool for

  • 0

We are working on a Grails-project, and exploring Flyway as a db-migration tool for us.

In our current architecture, we rely on Groovy-migration scripts (executed at application-startup) for conditional environment-specific data insertions (say ‘some-data’ in ‘tableA’ for Production against ‘other-data’ in the same table ‘tableA’ for pre-Production).

Q1. Does Flyway support Groovy-migration scripts?

Q2. If not, then how best can we achieve conditional environment-specific data insertions?

  • 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-06-13T15:54:50+00:00Added an answer on June 13, 2026 at 3:54 pm

    Q1: Java-based migrations are loaded as binary classes at runtime. Whether the source was Java or Groovy shouldn’t matter here. So yes, writing them in Groovy should work.

    Q2: Flyway supports multiple locations to load migrations from. These locations can then be configured differently per environment (in your case for PROD & PRE-PROD). You can use this to include different data based on the environment Flyway runs in.

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

Sidebar

Related Questions

I have been working on the project where application is using grails 1.2.2.... Now
I am currently working on grails project. I have created eight different plugins. Each
I am currently working on a grails project where I need to execute a
We are working on a new project with Grails 2.0.1 and Spring Security. The
I'm currently working on a project using netbeans 6.9 and grails 1.3. I'm trying
I was using grails 1.3.4 for my project and everything was working fine until
I'm working on a Grails application. There is a domain class participant - within
I am currently working on a Grails project and would like to know the
I am working on a grails project and I have put a .jar file
I am working on a Grails project and I have a User domain model

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.