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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:42:36+00:00 2026-05-20T10:42:36+00:00

What processes do you put in place when collaborating in a small team on

  • 0

What processes do you put in place when collaborating in a small team on websites with databases?

We have no problems working on site files as they are under revision control, so any number of our developers can work from any location on this aspect of a website.

But, when database changes need to be made (either directly as part of the development or implicitly by making content changes in a CMS), obviously it is difficult for the different developers to then merge these database changes.

Our approaches thus far have been limited to the following:

  • Putting a content freeze on the production website and having all developers work on the same copy of the production database
  • Delegating tasks that will involve database changes to one developer and then asking other developers to import a copy of that database once changes have been made; in the meantime other developers work only on site files under revision control
  • Allowing developers to make changes to their own copy of the database for the sake of their own development, but then manually making these changes on all other copies of the database (e.g. providing other developers with an SQL import script pertaining to the database changes they have made)

I’d be interested to know if you have any better suggestions.

We work mainly with MySQL databases and at present do not keep track of revisions to these databases. The problems discussed above pertain mainly to Drupal and WordPress sites where a good deal of the ‘development’ is carried out in conjunction with changes made to the database in the CMS.

  • 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-20T10:42:36+00:00Added an answer on May 20, 2026 at 10:42 am

    Where i work, every developer (actually, every development virtual machine) has its own database (or rather, its own schema on a shared Oracle instance). Our working process is based around complete rebuilds. We don’t have any ability to modify an existing database – we only ever have the nuclear option of blowing away the whole schema and building from scratch.

    We have a little ‘drop everything’ script, which uses queries on system tables to identify every object in the schema, constructs a pile of SQL to drop them, and runs it. Then we have a stack of DDL files full of CREATE TABLE statements, then we have a stack of XML files containing the initial data for the system, which are loaded by a loading tool. All of this is checked into source control. When a developer does an update from source control, if they see incoming database changes (DDL or data), they run the master build script, which runs them in order to create a fresh database from scratch.

    The good thing is that this makes life simple. We never need to worry about diffs, deltas, ALTER TABLE, reversibility, etc, just straightforward DDL and data. We never have to worry about preserving the state of the database, or keeping it clean – you can get back to a clean state at the push of a button. Another important feature of this is that it makes it trivial to set up a new platform – and that means that when we add more development machines, or need to build an acceptance system or whatever, it’s easy. I’ve seen projects fail because they couldn’t build new instances from their muddled databases.

    The main bad thing is that it takes some time – in our case, due to the particular depressing details of our system, a painfully long time, but i think a team that was really on top of its tools could do a complete rebuild like this in 10 minutes. Half an hour if you have a lot of data. Short enough to be able to do a few times during a working day without killing yourself.

    The problem is what you do about data. There are two sides to this: data generated during development, and live data.

    Data generated during development is actually pretty easy. People who don’t work our way are presumably in the habit of creating that data directly in the database, and so see a problem in that it will be lost when rebuilding. The solution is simple: you don’t create the data in the database, you create it in the loader scripts (XML in our case, but you could use SQL DML, or CSV with your database’s import tool, or whatever). Think of the loader scripts as being source code, and the database as object code: the scripts are the definitive form, and are what you edit by hand; the database is what’s made from them.

    Live data is tougher. My company hasn’t developed a single process which works in all cases – i don’t know if we just haven’t found the magic bullet yet, or if there isn’t one. One of our projects is taking the approach that live is different to development, and that there are no complete rebuilds; rather, they have developed a set of practices for identifying the deltas when making a new release and applying them manually. They release every few weeks, so it’s only a couple of days’ work for a couple of people that often. Not a lot.

    The project i’m on hasn’t gone live yet, but it is replacing an existing live system, so we have a similar problem. Our approach is based on migration: rather than trying to use the existing database, we are migrating all the data from it into our system. We have written a rather sprawling tool to do this, which runs queries against the existing database (a copy of it, not the live version!), then writes the data out as loader scripts. These then feed into the build process just like any others. The migration is scripted, and runs every night as part of our daily build. In this case, the effort needed to write this tool was necessary anyway, because our database is very different in structure to the old one; the ability to do repeatable migrations at the push of a button came for free.

    When we go live, one of our options will be to adapt this process to migrate from old versions of our database to new ones. We’ll have to write completely new queries, but they should be very easy, because the source database is our own, and the mapping from it to the loader scripts is, as you would imagine, straightforward, even as the new version of the system drifts away from the live version. This would let us keep working in the complete rebuild paradigm – we still wouldn’t have to worry about ALTER TABLE or keeping our databases clean, even when we’re doing maintenance. I have no idea what the operations team will think of this idea, though!

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

Sidebar

Related Questions

I have two C++ processes (A and B), executing under Windows, where one launches
I am working on a number of websites with files dating back to 2000.
I have two unrelated processes that use .NET assemblies as plugins. However, either process
I have several server processes that once in a while respond to messages from
I have multiple processes monitoring an MSMQ queue. I want to do multi-step operations
My code processes all the files in a folder on a Windows box. I
I have two running processes in Windows, and each process has a pipe to
I have two processes one will query other for data.There will be huge amount
In order to put in place a continuous integration system, Hudson, I wrote a
I know this isn't the best place to put this question but here it

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.