Thursday, October 2, 2014

Applying migrations to (non-interactive) production server

Hi,

I have succesfully upgraded an application to 1.7, and the time has come to apply a migration. In my development environment this is, as expected, a non issue; however, this particular application is hosted in a server where I'm not allowed to run interactive commands. This means that django-admin.py migrate is out of the question.

I've made a test with obtaining the SQL commands using sqlmigrate and then applying them to the production database -- which thankfully provides an interface to send SQL statements. So far, I have found no problems.

Is there another method? Am I missing something?

TIA,
Carlos.

--
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+unsubscribe@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/CAPjvz2mV3j5pmQZvvHpQA59meqmwqs5S%2BETapkX_TezNcbY4hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment