Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Database and version control system

I'm work on project with django framework and use control version system to synchronize my code with other peoples. But i don't know how organize work with database. In django, any people, worked on project, may changes django models, and tell 'syncdb' to synchronize model objects with db. But other people don't about this changes, and it's code revision may not works. Please, tell me some ways to solve this problem (maybe, different db or something another).

Thanks, and excuse my english :)


1 Answers

You have to actually talk to the people on your project.

If someone changes any database model, they have to actually tell everyone else about the change. This is not a Django problem.

Think of any SQL database -- without Django. When the DBA drop's a table, they have to tell everyone that they changed the database. Otherwise all programs that use the table break.

The model definition is special, and whoever can change this must tell everyone else.

like image 125
S.Lott Avatar answered Dec 30 '25 03:12

S.Lott



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!