Database and Version Management System

I am working on a project with a django map and use the version control system to synchronize my code with other people. But I do not know how to organize work with the database. In django, anyone working on a project can modify django models and tell 'syncdb' to synchronize model objects with db. But other people are not aware of these changes, and this can lead to code revisions. Please tell me some ways to solve this problem (maybe a different db or something else).

Thank you and sorry my english :)

+3
source share
7 answers

You should talk to people in your project.

- - , . Django.

SQL - Django. DBA , , . , , .

, , , .

+4

. . - :

/ ( )

  • Script1_date.sql
  • Script2_date.sql

...

+3

, ; , Django syncdb . .

, , , syncdb .

+1

... , MDF LDF ? , , ...

+1

, , ,

http://south.aeracode.org/

, ... , - , ...

+1

deltasql. http://www.gpu-grid.net/deltasql ( : admin password: testdbsync) http://sourceforge.net/projects/deltasql ciao: -)

+1

, .

As an example: http://www.aswmc.com/dbmigration/

You can also add functional unit tests that actually verify that the circuit is as expected, so when the tests fail, you can see that it is a circuit change, and check if it will affect other parts of the application, If it doesn’t so, correct your test to accommodate the new design.

0
source

Source: https://habr.com/ru/post/1698170/


All Articles