Opened 10 years ago

Closed 10 years ago

#22674 closed Uncategorized (invalid)

migrate does not create missing intermediate table

Reported by: shige.abe@… Owned by: nobody
Component: Migrations Version: 1.7-beta-2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If I have an app that has a ManyToMany relation, it creates an intermediate table in the database.

In the lastest stable/1.7.x branch, if I delete the intermediate table only, ./manage.py migrate does not create it.

I was expecting Django to notice that table was missing and to create it.

Change History (1)

comment:1 by David S, 10 years ago

Resolution: invalid
Status: newclosed

the migrations framework use a table in the database to record which migrations have been applied (as opposed to e.g. introspection). thus, if you manually mess with the tables, it can't tell.

Note: See TracTickets for help on using tickets.
Back to Top