summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/schema.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2017-08-08 22:13:02 +0200
committerGitHub <noreply@github.com>2017-08-08 22:13:02 +0200
commit3189a93cebbd5d8fbda8f251786918820156acec (patch)
tree6c2d836b13e8cb97f881f4533540cbbb14eaf28a /django/db/backends/postgresql/schema.py
parentc754bdc45bdcd9b2a03d4e3e10ea2a742456de91 (diff)
downloaddjango-3189a93cebbd5d8fbda8f251786918820156acec.tar.gz
Refs #23766 -- Added tests for CursorWrapper.callproc().
Thanks Tim Graham for the review.
Diffstat (limited to 'django/db/backends/postgresql/schema.py')
-rw-r--r--django/db/backends/postgresql/schema.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/schema.py b/django/db/backends/postgresql/schema.py
index 1e505a2134..20cea3f249 100644
--- a/django/db/backends/postgresql/schema.py
+++ b/django/db/backends/postgresql/schema.py
@@ -20,6 +20,8 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
# dropping it in the same transaction.
sql_delete_fk = "SET CONSTRAINTS %(name)s IMMEDIATE; ALTER TABLE %(table)s DROP CONSTRAINT %(name)s"
+ sql_delete_procedure = 'DROP FUNCTION %(procedure)s(%(param_types)s)'
+
def quote_value(self, value):
return psycopg2.extensions.adapt(value)