From 75387c3c62f8623dfbcc8019c14e68de1391b0c3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 29 Jan 2020 17:41:48 +0100 Subject: Finish migration refactoring --- archaeological_operations/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_operations/models.py') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 0e36570b6..ad0604fad 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1830,7 +1830,7 @@ class OperationByDepartment(models.Model): AS ON DELETE TO operation_department DO INSTEAD(); """ DELETE_SQL = """ - DROP VIEW operation_department; + DROP VIEW IF EXISTS operation_department; """ operation = models.ForeignKey(Operation, verbose_name=_("Operation")) -- cgit v1.2.3