On Fri, Dec 11, 2009 at 11:36 AM, Zeynel <azeyn...@gmail.com> wrote:

>
>
> So, it seems that, according to documentation, syncdb will create the
> new tables?


Yes, it will create *new* tables.  It will not alter existing tables.

If you don't need to save your existing data, the easiest thing is to drop
the old database and re-create it, then let syncdb create all the tables
again.

If you do need to save old data, you could either add the columns yourself
or rename the existing table, use syncdb to create the new version, then do
something like INSERT INTO foo (id, bar, bat) SELECT id, bar, bat FROM
old_foo.

Nick

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to