Database modeling software with non-binary file format?
Do you know a database modeling software whose the file format can safely be tracked by a VCS without always creating conflicts ? (i.e. a non-binary file for开发者_JAVA技巧mat.) It would be great if the software worked on Linux and MacOS also.
It would be even better if the file format could be diffed easily.
Edit:
I am currently using MySQL Workbench and am satisfied with it, however its binary file format keeps creating conflicts in the VCS, and using it is a pain because of this.
I think your question is answered here: MySQL Version Control - Subversion
The only avaiable tool I know is WWW SQL Designer.
I use microOLAP for MySQL database design. It's a windows application unfortunately (I'm a Linux+Mac user mysql too), but it works like a charm. It generates XML out of the database schema, so it can safely be imported into any VCS. Otherwise, you can try Dia on Linux as well. It's not as advanced as microOLAP, but it does have limited ER-diagram designing possibilities.
There is Workbench's predecessor, DBDesigner which saves XML files and has Windows and Linux versions.
Alternatively, you could use pre-commit and post-update hooks to convert your Workbench model files before a commit and recreate them after an update and put the non-binary data into version control. However, you would still have to be careful when merging.
- Pre-commit: Unzip the model file, store the XML and a SQLite dump
- Post-update: Recreate the SQLite database and generate model file.
You can try the "MySQL Workbench"
精彩评论