#28832: django migrations to PostgreSQL not handling order_with_respect_to
removals
-------------------------------------+-------------------------------------
Reporter: AJ | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage:
order_with_respect_to PostgreSQL | Unreviewed
makemigrations |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by AJ):
So I have to admit I have little understanding how Django builds migration
scripts under the hood. I only work above the hood, but I can point you to
the commits that track the problem.
My repo: https://bitbucket.org/talkingtoaj/lang/commits/all
The commit that introduced the problem: 21:21 21 Nov 2017 sha: 1a52c96
The reversal-commit that fixed the problem: 21:30 22 Nov 2017 sha: ffa6207
A second attempt that again re-introduced the problem: 21:42 22 Nov 2017
sha: de45121
I hope that sheds some light to where the problem lies. My guess is,
migration 0010 of commit 1a52c96 while setting order_with_respect_to=None,
failed to delete the _order field from the model's DB table.
Is it possible that since my local development testbed uses SQLite that
the migration file was insufficiently built to allow for my live
PostgreSQL DB? Or are the migration files definitely still DB-agnostic?
--
Ticket URL: <https://code.djangoproject.com/ticket/28832#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.e52bcc9e06773f44460b9bd745751079%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.