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_context_records/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archaeological_context_records/models.py') 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", -- cgit v1.2.3