This is a difficult problem. We reviewed it by revising the sql used to create the schema (automatically created from Enterprise Architect). We had huge problems when people did not update their database schemas because they thought it took too long to re-create a dataset that would have reliable test data.
Our solution was as follows:
- Add SQL Schema Generation to SVN
- Add data entry scripts to SVN
- Add schema / data dumps to SVN
We used Hudson to configure automatic database builds that would check for changes in the revision. It automatically re-creates the circuit, inserts all the data, exports the dump file, and then transfers the dump file to SVN.
Basically, it came down to starting a database import, which took about 20 seconds. Once you quickly create a database, developers will not have to do this often.
source share