In 1.9, this issue is already handled because the flushing the test db has
been removed anyway.
--
Ticket URL: <https://code.djangoproject.com/ticket/24729>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old description:
> In 1.8 only, the test db is flushed before running migrations. But when
> using --keepdb the migrations won't be run, therefore any app which has
> data migrations will effectively be broken. For most non-trivial apps,
> their test setups won't even run.
>
> In 1.9, this issue is already handled because the flushing the test db
> has been removed anyway.
New description:
In 1.8 only, the test db is flushed before running migrations. But when
using --keepdb the migrations won't be run, therefore any app which has
data migrations will effectively be broken. For most non-trivial apps,
their test setups won't even run.
In 1.9, this issue is already handled because flushing the test db has
been removed anyway.
https://github.com/django/django/pull/4582
--
--
Ticket URL: <https://code.djangoproject.com/ticket/24729#comment:1>
* has_patch: 0 => 1
* type: Uncategorized => Bug
* stage: Unreviewed => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/24729#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"6b05d3a2e34229bf97e0a0dad81c09fa572591ff" 6b05d3a]:
{{{
#!CommitTicketReference repository=""
revision="6b05d3a2e34229bf97e0a0dad81c09fa572591ff"
[1.8.x] Fixed #24729 -- Removed test db flush when using --keepdb.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24729#comment:3>
Comment (by Sam Thompson):
This appears to also be broken in 1.9 (1.9.6 in my case). Investigating
further before opening a new ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/24729#comment:4>