For now I'm assuming the preferred method just needs to be documented (I
clearly have no idea what this is) and that there is not some fundamental
bug in the migrations system that prevents a reasonable approach.
I was directed to open a ticket after discussing this issue on the users
mailing list https://groups.google.com/d/msg/django-
users/SPXOBZN0b5g/_8ibzrqWE1QJ
This post contains specific details of the problem as well as the flawed
approach I took. Appreciate any feedback concerning best practices for
this problem type.
--
Ticket URL: <https://code.djangoproject.com/ticket/24016>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* type: Uncategorized => New feature
* needs_tests: => 0
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:1>
Comment (by akulakov):
You could argue that migrations between 3rd party apps are one-off type of
thing and should be handled by a custom script, and is a very different
use case than migrating within your own app which is a continuous process
in larger apps. Does that make sense?
--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:2>
* owner: nobody => rixx
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:3>
* needs_better_patch: 0 => 1
* version: 1.7 => master
--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:4>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:5>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"b7ea494d65e4d9703a0a24f0cd708293df88f48b" b7ea494]:
{{{
#!CommitTicketReference repository=""
revision="b7ea494d65e4d9703a0a24f0cd708293df88f48b"
Fixed #24016 -- Added documentation about third-party app data migrations
There was confusion about how to migrate data from third-party
applications when you are going to uninstall the application later on.
Thanks to Markus, Marten and Sergei for help and review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:7>
Comment (by Tim Graham <timograham@…>):
In [changeset:"c643b4c9f2acfdcb562bdbec1d74ac797b890b9b" c643b4c9]:
{{{
#!CommitTicketReference repository=""
revision="c643b4c9f2acfdcb562bdbec1d74ac797b890b9b"
Refs #24016 -- Edited "Migrating data between third-party apps" howto.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:8>
Comment (by Tim Graham <timograham@…>):
In [changeset:"59ae2292df8daae365f989bdb388b4eb38d5927a" 59ae2292]:
{{{
#!CommitTicketReference repository=""
revision="59ae2292df8daae365f989bdb388b4eb38d5927a"
[1.9.x] Fixed #24016 -- Added "Migrating data between third-party apps"
howto.
Thanks to Markus, Marten and Sergei for help and review.
Backport of b7ea494d65e4d9703a0a24f0cd708293df88f48b and
c643b4c9f2acfdcb562bdbec1d74ac797b890b9b from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:9>