On 25/04/2015 10:26 PM, Timothy W. Cook wrote:
Django 1.8 Â Python 3.4 PostgreSQL 9.3

During development I am creating several migrations. It seems
unnecessary to keep these since they only exist on my dev machine. Â
Any data that I have created can be thrown away too.

Is it safe to delete these migrations  (and the database) before
deploying to the next stage for testing by users?Â

If the data can be thrown away I would have no hesitation in dropping the entire database, deleting migrations and starting again.

There will come a point when you need to create a database for the users to enter their data. From that moment, your dev database and the production database must be kept in sync. That is when migrations must change your dev database and be stored in your repo to be applied against the production database each time you deploy updates to production.

I'm still learning about migrations but I can't see anything wrong with answering yes to your question.

mike


--

============================================
Timothy Cook
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
MLHIMÂ http://www.mlhim.org <http://www.mlhim.org/>

--
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
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto: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/CA%2B%3DOU3WNb8XWUWLyN%2B7fq4u7Er3dczOqgBKLODdVnE3cLxOr-g%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CA%2B%3DOU3WNb8XWUWLyN%2B7fq4u7Er3dczOqgBKLODdVnE3cLxOr-g%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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/553B9121.8000208%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

Reply via email to