summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorvarunkasyap <varunkasyap@hotmail.com>2026-03-22 21:20:18 +0530
committerJacob Walls <jacobtylerwalls@gmail.com>2026-03-24 08:56:36 -0400
commitb38cddf8f9d9dfe7a80e8d05c2295c69bdee68f0 (patch)
treeea02f70536911057d8a44876ea40e0a61df4a3fe /django
parentf3bdfd2065373272ebb637785cea2313582a8b8c (diff)
Fixed #36985 -- Skipped CreateExtension backwards operation on non-PostgreSQL databases.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/postgres/operations.py2
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