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

  • Home
  • SEARCH
  • 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 8280873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:50:22+00:00 2026-06-08T09:50:22+00:00

What are relational database (and schema) migration patterns on production in continuous delivery? In

  • 0

What are relational database (and schema) migration patterns on production in continuous delivery?

In many traditional developments the DBA arranges a big migration script out of the many smaller scripts created in the current release cycle. But in CD the developer may want to push the change now to production, not wait to compile them with other scripts.

I know on rails-migration but to me it looks more reasonable to use raw sql scripts.

I’ve also seen tools like flyway to manage migrations but I have not read of many people using them in production. This is why I wonder what are the common practices here.

  • 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-08T09:50:24+00:00Added an answer on June 8, 2026 at 9:50 am

    Flyway works great for continuous delivery/deployment. Many clients use it across all environments, including production.

    The single most important thing for cascading DB migrations across environments is to have a 3 step process:

    Step 1

    Old application code works together with old DB.

    Step 2

    New application code get deployed, and migrates DB on startup. This migration must be backwards-compatible so that old application code still works with the new DB. This is essential because:

    • you can then do rolling upgrades, upgrading one node at a time until all nodes have the new application code
    • rollback immediately to the old application code if the new one is broken

    This step may involve compatibility views and triggers to do the job.

    Step 3

    After the changes have been proven to work, the next version of the application code gets
    deployed together with the necessary DB migrations to discard any remaining outdated (from step 1) and compatibility (from step 2) structures.

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

Sidebar

Related Questions

I need a relational database schema to store vCard ver 3 data elements. Rather
Coming from a relational database background, as I'm sure many others are, I'm looking
Is anyone aware of a vendor neutral XSD to describe a relational database schema?
When talking about relational database the concepts I've learned are that there exists schema,
I am designing a relational database schema that may be ported to multiple database
I have the following database relational schema that purports to model an EMP supertype
Are there any Python object-relational mapping libraries that, given a database schema, can generate
I know how a relational database stores data. I know the basics of indexeddb
In a Relational Database, what is the best way to handle removing an object
With the launch of Amazon's Relational Database Service today and their 'enforced' maintenance windows

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.