From bac13defde718a3755ac24dc35c3b260d84f644c Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Wed, 23 Nov 2016 16:46:09 -0500 Subject: [PATCH] Minor cleanups Change default values for route address and error (and tweak comment) --- sql/branch.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sql/branch.sql b/sql/branch.sql index cddf03caa3..78e37bb706 100644 --- a/sql/branch.sql +++ b/sql/branch.sql @@ -8,11 +8,11 @@ UPDATE exchanges SET status = 'unknown' WHERE status IS NULL; -- Alter the exchanges table to ensure that no more NULL values are entered ALTER TABLE exchanges ALTER COLUMN status SET NOT NULL; --- Insert records for ‘unknown’ (previously NULL in exchanges table +-- Insert records for 'unknown' (previously NULL) in exchanges table -- network in exchange_route table -INSERT INTO exchange_routes (participant, network, address, error) +INSERT INTO exchange_routes (participant, network, address, error) ( - SELECT DISTINCT participants.id, 'unknown'::payment_net, 'None', 'None' + SELECT DISTINCT participants.id, 'unknown'::payment_net, 'n/a', '' FROM exchanges, participants WHERE exchanges.participant = participants.username AND route IS NULL