From 3b9c3811122f1d28cfa23579669ce21ca9d211ce Mon Sep 17 00:00:00 2001
From: Christian Grothoff <christian@grothoff.org>
Date: Fri, 15 Jan 2021 11:53:54 +0100
Subject: remove master_pub from DB

---
 src/exchangedb/exchange-0002.sql | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src/exchangedb/exchange-0002.sql')

diff --git a/src/exchangedb/exchange-0002.sql b/src/exchangedb/exchange-0002.sql
index 9b66d4d18..b03a7b512 100644
--- a/src/exchangedb/exchange-0002.sql
+++ b/src/exchangedb/exchange-0002.sql
@@ -44,6 +44,10 @@ COMMENT ON INDEX prepare_get_index
   IS 'for wire_prepare_data_get';
 
 
+-- we do not actually need the master public key, it is always the same
+ALTER TABLE denominations
+  DROP COLUMN master_pub;
+
 -- need serial IDs on various tables for exchange-auditor replication
 ALTER TABLE denominations
   ADD COLUMN denominations_serial BIGSERIAL UNIQUE;
-- 
cgit v1.2.3

