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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:01:42+00:00 2026-05-12T15:01:42+00:00

(Make this CW if needed) We are two developers working on a web application

  • 0

(Make this CW if needed)
We are two developers working on a web application based (PHP5, ZF, Doctrine, MySQL5). We are working each with a local webserver and a local database. The database schema is defined in a YAML file.

What’s the best way to keep our database schemas in sync?

Here’s how we do it: Whenever developer “A” makes a change, he generates a migration class. Then he commits the migration file developer “B” executes the migration class.

But creating a migration class on every db change is a rather tedious process.

Do you have a better solution?

  • 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-12T15:01:42+00:00Added an answer on May 12, 2026 at 3:01 pm

    I don’t know how you do in the Zend Framework with Doctrine. Here’s how I would do it in Symfony with Propel. Though the exact procedure may vary, but the underlying concept is the same.

    I have unit tests on my DAL.

    Whenever the schema changes, we check in the yml and the generated ORM code ( You do have a source control, don’t you). I set the check-in to auto-mode, meaning I will get all the check-in instantly.

    If the schema changes don’t affect my thing, then I would just ignore the changes. But if the schema changes break my thing, then I will rebuild my form, ORM classes and whatnot by using symfony propel build command. Rebuilding those infrastructures is just a single command line thing, so there is no problem for me.

    Finally, after rebuilding, I will run my unit tests, to make sure everything is OK. If not, I better get them fixed!

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

Sidebar

Ask A Question

Stats

  • Questions 204k
  • Answers 204k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can use the Write-Host cmdlet. The strings displayed via… May 12, 2026 at 8:49 pm
  • Editorial Team
    Editorial Team added an answer I suspect you are using vim and not gvim. vim… May 12, 2026 at 8:49 pm
  • Editorial Team
    Editorial Team added an answer Using Qt is coherent for your problem: it provides good… May 12, 2026 at 8:49 pm

Related Questions

I'm trying to think of the correct design for a web service. Essentially, this
I have a problem so strange that I hardly can put an adequate title
Say I am declaring a class C and a few of the declarations are
After switching from C++ to C++ w/boost, do you think your OOD skills improved?
Microsoft make this piece of software called Visual Studio 2008 Professional. I have found

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.