summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/operations.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2015-04-04 18:10:26 +0200
committerClaude Paroz <claude@2xlibre.net>2015-04-18 15:17:49 +0200
commit36e90d1f45a13f53ce25fdc2d9c04433b835c9af (patch)
tree3e5ade944da5c13bcfaba6adac9b15cebbb2b9ef /django/contrib/postgres/operations.py
parent6b6d13bf6ed02c345912829e3850a201f113712a (diff)
downloaddjango-36e90d1f45a13f53ce25fdc2d9c04433b835c9af.tar.gz
Stopped special-casing postgres-specific tests
Refs #23879.
Diffstat (limited to 'django/contrib/postgres/operations.py')
-rw-r--r--django/contrib/postgres/operations.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/contrib/postgres/operations.py b/django/contrib/postgres/operations.py
index 5b3bd2a3cc..3bb81dc3f9 100644
--- a/django/contrib/postgres/operations.py
+++ b/django/contrib/postgres/operations.py
@@ -12,6 +12,8 @@ class CreateExtension(Operation):
pass
def database_forwards(self, app_label, schema_editor, from_state, to_state):
+ if schema_editor.connection.vendor != 'postgresql':
+ return
schema_editor.execute("CREATE EXTENSION IF NOT EXISTS %s" % self.name)
def database_backwards(self, app_label, schema_editor, from_state, to_state):