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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:30:28+00:00 2026-05-25T03:30:28+00:00

In general, the schema of a database will change over time. Between builds, zero

  • 0

In general, the schema of a database will change over time. Between builds, zero to many schema changes can occur. What is a “best practice” for capturing these changes?

For example, let’s say 2 developers are working on a project and using git for source control. They agree to have a build on Friday. Each go about their work, checking in changes with database migration scripts that update to the current schema. When person A gets person B’s changes, how can they easily know which upgrade scripts to run? When a person is looking at a database on a server, how can they know which version they are on? If the database captures the version number, that means that on Friday, one of the people on the team had to say to everyone else “Ok, everyone check in, then I am going to write a script that updates the version number to the next version and check it in.”

Is there a standard way to approach this? Thanks.

  • 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-25T03:30:29+00:00Added an answer on May 25, 2026 at 3:30 am

    Consider writing one migration per database [structure] change, not per stable version of your system. Just like revisions of code: every change updates system and increments it’s revision (not version).

    Usually we store database revision (along with ‘public’ version) in a special table. Sometimes we store names of migration scripts that were applied to this database, but it’s more complex solution. It’s handy to inlude revision of database which would be after applying migration in the file name. Last line in migration script updates migration version in a special table.

    To determine which migrations to apply to concrete developer’s database, you just take all the migrations that have higher revision number than revision of database that is stored in a special table.

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

Sidebar

Related Questions

here's a more general question on how you handle database schema changes in a
I'm looking for a general solution for upgrading database schema with ORM tools, like
My application does not fit into the general purpose RDBMS schema category, I do
How does one go about establishing a CSS 'schema', or hierarchy, of general element
For general protocol message exchange, which can tolerate some packet loss. How much more
We are designing database schema for a new system based on Oracle 11gR1. We
I know about covariance, and I know that in general it will not be
where can i learn more abt creating database markup in yaml and data fixtures.
I am wondering if there are best practices for deciding between when a system
Do you guys keep track of stored procedures and database schema in your source

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.