diff options
Diffstat (limited to 'django/db/backends/postgresql/schema.py')
-rw-r--r-- | django/db/backends/postgresql/schema.py | 2 |
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) |