summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py6
1 files changed, 3 insertions, 3 deletions
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;
"""