diff options
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): |