On 5/3/07, nerezus <[EMAIL PROTECTED]> wrote: > > I've just dropped all the tables and "syncdb" another one time. And > it's working now! > > But what should I do if I want to add new field to model? Dropping > tables is not a good idea... And without dropping "syncdb" does not > work.
This problem is called schema evolution. There have been several attempts to implement schema evolution, but none have been successful so far. Until a successful implementation lands, you need to either: 1) Get familiar with your database of choice and learn about ALTER TABLE statements 2) Drop and resync the tables, using dumpdata/loaddata or some other mechanism to preseve and transform data into new structures. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---