Opened 7 years ago

Last modified 5 years ago

#24729 closed Bug

Test --keepdb option is incompatible with data migrations. — at Version 1

Reported by: acoady Owned by: nobody
Component: Database layer (models, ORM) Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by acoady)

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.

Change History (1)

comment:1 Changed 7 years ago by acoady

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top