Hi all,

I have been playing around with Django now for a couple of weeks

I have been adding apps to my project and one point of frustration is the 
migration. When there are PK and/or FK relations:
You are trying to add a non-nullable field 'user' to user without a 
default; we can't do that (the database needs something to populate 
existing rows).
Please select a fix:
 1) Provide a one-off default now (will be set on all existing rows)
 2) Quit, and let me add a default in models.py

What I'm use to do is DROP the database and migrate it again. I know this 
is not the way to go, because if you are doing this in PROD you will loose 
all your data. I don't get the logic behind this. Some of you must have 
experience with making major change to you PROD web application. How did 
you made sure all the data is preserved?

Cheers,
Raoul

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b89feec8-ede0-4ed0-956e-45dab3963366%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to