Monday, December 7, 2015

Re: Drop and replace SQL Table automatically when Model is migrated

Django has built-in support for database migrations since version 1.7. In normal conditions you should be using at least version 1.8 (LTS, and lowest version supported now).

On 07.12.2015 03:48, Alexander Whatley wrote:
I will check with the people who made the IDE. Thanks for the input.

On Sunday, December 6, 2015 at 3:22:50 PM UTC-5, Alexander Whatley wrote:
This question may just be due to my inexperience with Django, but whenever I modify one of my Model elements and change its parameters, I have to close my IDE and manually use the command prompt to drop the SQL Table corresponding to the Model, and then migrate the new model, which is very annoying. Is there a built in feature in Django that allows me to get around having to do this, and if not, is there one in development? 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 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/b39603db-175d-42ac-a607-229a961788c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment