Yourlabs

migrations

Django schema migrations: nashvegas vs. South vs. evolution

| by jpic | django migrations
Schema migration consists of altering a database structure. For example, adding a column, an index … When creating a Django model, running the syncdb command can create the tables. But syncdb doesn't support schema migrations. So when modifying a Django model, reflecting the changes on to the database is left as an exercice for the sysadmin. Django-extensions If you don't speak fluent SQL, use the sqldiff command from django-extensions. It compares the database structure with the actual models for an app, and output SQL migration code. Read More
1 of 1