summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-01-29 17:41:48 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2020-07-01 18:02:28 +0200
commit49e87a9cb4e32c30e004dbf87f1b8f4d8326282f (patch)
treecd63cc6c0ed2e4d907c0026ea00682067064912b /archaeological_context_records/models.py
parenta3c9b4a707d80c6ba043c11703f8af46ccb6d16c (diff)
downloadIshtar-49e87a9cb4e32c30e004dbf87f1b8f4d8326282f.tar.bz2
Ishtar-49e87a9cb4e32c30e004dbf87f1b8f4d8326282f.zip
Finish migration refactoring
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py4
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",