From b05fa286450951fe2b344b818a19b96f3a5b6407 Mon Sep 17 00:00:00 2001
From: Wojciech Barcik <wbarcik@syncad.com>
Date: Fri, 6 Nov 2020 09:23:58 +0100
Subject: [PATCH] Recreate table deps_saved_ddl when doing db upgrade

Fix problem with collation,
---
 hive/db/sql_scripts/postgres_handle_view_changes.sql | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hive/db/sql_scripts/postgres_handle_view_changes.sql b/hive/db/sql_scripts/postgres_handle_view_changes.sql
index ee26264f9..5bd7f8b42 100644
--- a/hive/db/sql_scripts/postgres_handle_view_changes.sql
+++ b/hive/db/sql_scripts/postgres_handle_view_changes.sql
@@ -5,6 +5,8 @@ See http://pretius.com/postgresql-stop-worrying-about-table-and-view-dependencie
 Enhanced by Wojciech Barcik wbarcik@syncad.com (handling of rules).
 */
 
+DROP TABLE IF EXISTS deps_saved_ddl;
+DROP SEQUENCE IF EXISTS deps_saved_ddl_deps_id_seq;
 
 -- SEQUENCE: deps_saved_ddl_deps_id_seq
 
-- 
GitLab