From 6a41165f7930ef9017f4c06baae6594e17884e14 Mon Sep 17 00:00:00 2001
From: ABW <andrzejl@syncad.com>
Date: Tue, 28 Jul 2020 13:18:06 +0200
Subject: [PATCH] [ABW] wv_hive_votes_accounts_permlinks renamed
 hive_votes_accounts_permlinks_view

---
 hive/db/schema.py                   | 4 ++--
 hive/server/database_api/methods.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hive/db/schema.py b/hive/db/schema.py
index 31debd1e3..9749db39b 100644
--- a/hive/db/schema.py
+++ b/hive/db/schema.py
@@ -696,9 +696,9 @@ def setup(db):
     db.query_no_return(sql)
 
     sql = """
-        DROP VIEW IF EXISTS wv_hive_votes_accounts_permlinks
+        DROP VIEW IF EXISTS hive_votes_accounts_permlinks_view
         ;
-        CREATE VIEW wv_hive_votes_accounts_permlinks
+        CREATE VIEW hive_votes_accounts_permlinks_view
         AS
         SELECT
             ha_v.id as id,
diff --git a/hive/server/database_api/methods.py b/hive/server/database_api/methods.py
index c617bcfe0..ec8daeb38 100644
--- a/hive/server/database_api/methods.py
+++ b/hive/server/database_api/methods.py
@@ -213,7 +213,7 @@ async def find_votes(context, params: dict, votes_presentation = VotesPresentati
             num_changes,
             reputation
         FROM
-            wv_hive_votes_accounts_permlinks
+            hive_votes_accounts_permlinks_view
         WHERE
             author = :author AND permlink = :permlink
         ORDER BY id
-- 
GitLab