diff options
| -rw-r--r-- | django/contrib/postgres/operations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/postgres/operations.py b/django/contrib/postgres/operations.py index c09d7874c1..b760b32a23 100644 --- a/django/contrib/postgres/operations.py +++ b/django/contrib/postgres/operations.py @@ -43,7 +43,7 @@ class CreateExtension(Operation): ) def database_backwards(self, app_label, schema_editor, from_state, to_state): - if not router.allow_migrate( + if schema_editor.connection.vendor != "postgresql" or not router.allow_migrate( schema_editor.connection.alias, app_label, **self.hints ): return |
