diff options
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 848af5495..84e2b3542 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -325,7 +325,7 @@ class CRBulkView(object): ON cr.parcel_id = parcel.id );""" DELETE_SQL = """ - DROP VIEW context_records_cached_label_bulk_update; + DROP VIEW IF EXISTS context_records_cached_label_bulk_update; """ @@ -1027,7 +1027,7 @@ class RecordRelationView(models.Model): DO INSTEAD DELETE FROM record_relations where id=NULL; """ DELETE_SQL = """ - DROP VIEW record_relations; + DROP VIEW IF EXISTS record_relations; """ TABLE_COLS = [ "relation_type", |