From 36e90d1f45a13f53ce25fdc2d9c04433b835c9af Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 4 Apr 2015 18:10:26 +0200 Subject: Stopped special-casing postgres-specific tests Refs #23879. --- django/contrib/postgres/operations.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'django/contrib/postgres/operations.py') 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): -- cgit v1.2.1