./manage.py inspectdb
Introspects the database tables in the database and outputs a Django model module (a models.py file) to standard output. You may choose what tables to inspect by passing their names as arguments.
Use this if you have a legacy database with which you’d like to use Django. The script will inspect the database and create a model for each table within it.
SQL Compare стоит своих денег. Удивительно хорошо работает в разных кейсах — сравнение БД<->БД, БД<->Скрипты, Скрипты<->Скрипты. И command line тулза, и SDK есть. P.S. Это не реклама, просто желаю Вам добра и меньше велосипедов :)
Синхронизация структуры базы данных между приложениями