Source of trouble:
https://github.com/django/django/blob/master/django/contrib/postgres/operations.py#L18
Work-around/proposal for CreateExtension class:
{{{
class RoutingHStoreExtension(HStoreExtension):
def database_forwards(self, app_label, schema_editor, from_state,
to_state):
if not router.allow_migrate(schema_editor.connection.alias,
app_label):
return
return super().database_forwards(app_label, schema_editor,
from_state, to_state)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31347>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* component: Migrations => contrib.postgres
* version: 2.1 => master
* stage: Unreviewed => Accepted
Comment:
Agreed, we should check
`router.allow_migrate(schema_editor.connection.alias, app_label,
**self.hints)` in both `CreateExtension.database_forwards()` and
`database_backwards()`.
--
Ticket URL: <https://code.djangoproject.com/ticket/31347#comment:1>
* owner: nobody => Hasan Ramezani
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31347#comment:2>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31347#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/31347#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"ec292f261d2390f692d5534ca85a427216bc4e39" ec292f26]:
{{{
#!CommitTicketReference repository=""
revision="ec292f261d2390f692d5534ca85a427216bc4e39"
Fixed #31347 -- Checked allow_migrate() in CreateExtension operation.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31347#comment:5>