If it's a single database and a single field, is it feasible to just add
the field by hand using SQL?

Greetings,
Remco Gerlich

On Thu, Jul 7, 2016 at 1:05 PM, bobhaugen <[email protected]> wrote:

> We're upgrading an app from django 1.4 step-by-step through all the
> versions at least to 1.8. Got a self-inflicted problem with the new
> migrations in 1.7.
>
> Before we went to 1.7, we added a new field to a model, and migrated the
> db using South. Then when we went to 1.7, we restarted all the migrations.
>
> Unfortunately, we had one database that did not get the South migration
> with the new field.
>
> When we merge in the new code with the new field and try a migrate on the
> unmigrated database, it does nothing. I suppose because all we got now is
> the new-in-1.7 initial migration.
>
> And of course when I try to run the new code against the unmigrated db, I
> get an error about the missing field.
>
> I know we did wrong to leave that db unmigrated. But do we have any
> options for recovery now? Other than dump the data, recreate the db, and
> reload?
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/3b316785-23c0-4d49-9150-49da28d301ac%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/3b316785-23c0-4d49-9150-49da28d301ac%40googlegroups.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 [email protected].
To post to this group, send email to [email protected].
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/CAFAGLK0xUdCTNVFDsBENC%3Dorh4fCGRVc%3D98WHy8AeyMAWeqZ3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to