Chris wrote:
What's the best way to update database schema? If I add a column to a
table in my models.py and then run "manage.py syncdb", it doesn't add
the new column in the database.
syncdb will never issue an alter statement-- this could be devastating on a production server with lots of data.

You have a few options:

* issue the alter table command yourself
* drop the table altogether and run syncdb again
* check out the django-evolution project on google code. I haven't used it, but it is designed to handle just this.

Good Luck!

Jeff Anderson

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to