Skip to content

Historical migrations break when models are removed #48

Description

@ledburyb

Due to https://github.com/citusdata/django-multitenant/blob/master/django_multitenant/backends/postgresql/base.py#L79 the migrations are dependent on the current state of the application, not on the state that it was at when the migration was created.

This means that if you remove a model your migrations will no longer be able to run cleanly from start to finish and will instead hit the error from https://github.com/citusdata/django-multitenant/blob/master/django_multitenant/backends/postgresql/base.py#L85

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions