diff options
author | Claude Paroz <claude@2xlibre.net> | 2015-04-04 18:10:26 +0200 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2015-04-18 15:17:49 +0200 |
commit | 36e90d1f45a13f53ce25fdc2d9c04433b835c9af (patch) | |
tree | 3e5ade944da5c13bcfaba6adac9b15cebbb2b9ef /django/contrib/postgres/operations.py | |
parent | 6b6d13bf6ed02c345912829e3850a201f113712a (diff) | |
download | django-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.py | 2 |
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): |