From b2fbbfb073870d2dbada4073b3bd03861c2df3d7 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Tue, 19 Sep 2023 17:23:47 +0800 Subject: [PATCH] add deleting existing highlights from postgres before migration --- packages/db/migrations/0122.do.update_highlight.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/db/migrations/0122.do.update_highlight.sql b/packages/db/migrations/0122.do.update_highlight.sql index aeaacd542..1e942a557 100755 --- a/packages/db/migrations/0122.do.update_highlight.sql +++ b/packages/db/migrations/0122.do.update_highlight.sql @@ -4,6 +4,9 @@ BEGIN; +-- delete existing highlights +DELETE FROM omnivore.highlight; + CREATE TYPE highlight_type AS ENUM ( 'HIGHLIGHT', 'REDACTION',