From 49e87a9cb4e32c30e004dbf87f1b8f4d8326282f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 29 Jan 2020 17:41:48 +0100 Subject: Finish migration refactoring --- archaeological_finds/models_finds.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archaeological_finds/models_finds.py') diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index bc49601d4..0a32bba69 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -265,7 +265,7 @@ class BFBulkView(object): ON ope.id = cr.operation_id );""" DELETE_SQL = """ - DROP VIEW basefind_cached_bulk_update; + DROP VIEW IF EXISTS basefind_cached_bulk_update; """ @@ -725,7 +725,7 @@ class FirstBaseFindView(object): FROM archaeological_finds_find_base_finds GROUP BY find_id );""" DELETE_SQL = """ - DROP VIEW find_first_base_find; + DROP VIEW IF EXISTS find_first_base_find; """ @@ -749,7 +749,7 @@ class FBulkView(object): ON ope.id = cr.operation_id );""" DELETE_SQL = """ - DROP VIEW find_cached_bulk_update; + DROP VIEW IF EXISTS find_cached_bulk_update; """ -- cgit v1.2.3