Answer the question
In order to leave comments, you need to log in
How to work with a constantly changing database in a version control system?
We use subversion, MySQL, NetBeans.
It would be desirable that, besides the code, the base would also be in svn. The project database is updated quite often. How to update, fix, etc. with the least effort. tables, procedures, views, etc.?
Answer the question
In order to leave comments, you need to log in
store sql database generation?
use a flexible ORM that allows you to store the database structure in configs. like hibernate for java or doctrine for php
I use the following at work:
Rails solves this problem with migrations. Each database change is described through the DSL, and not applied directly to the database. It turns out that migrations are ordinary files with source code that are easily brought into the same svn. For PHP (if development is based on it), you can either look for a suitable library that will translate php code into sql queries, or write it yourself. There is nothing difficult there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question