On Fri, Mar 14, 2014 at 7:19 PM, Jonathan Baker <
jonathandavidba...@gmail.com> wrote:

> Does that mean that the default="" functionality is implemented by the
> ORM, instead of in the database layer?
>
>
Perhaps I'm wrong -- I'm looking at my South migrations and they do pass
the defaults. I believe that, either way, if you only touch the database
through the ORM it'll be set properly. It probably depends on what database
you're using.

However, there's a bigger issue -- if you run syncdb a second time, it will
do nothing, so it doesn't matter either way. If you want to modify an
existing table you need to use South (or do it manually). Syncdb will not
touch existing tables -- it only adds new ones. Or you can wipe out your
whole database and then run syncdb, that would fix it if you don't care
about your data.

Shawn

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOzwKwHmO%3D3T9BvRU6c1OL6G7HbR-At0pbn5-V47Nb-fLrs-kQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to