Friday, March 31, 2017

Adding fields in model, migrating a sqlite.db in production...good idea?

I have a sqlite db that already holds important production data.
Well same time I am developing that application adding functions while I need them.
Well I know not exactly best practice.
Now I need to add two fields to a model (boolean and char),
I want to makemigrations, git add, git commit, git push
Is there any risk of loosing part of the sqlite database here?
Or can I just backup the sqlite file, try to migrate and all the data plus the new empty fields will be there?
If someone with better knowledge can just say "yes should be working"?
Many thanks!

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
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment