Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Minor cleanups
Browse files Browse the repository at this point in the history
Change default values for route address and error (and tweak comment)
  • Loading branch information
chadwhitacre committed Nov 23, 2016
1 parent 0eb41a4 commit bac13de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/branch.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bac13de

Please sign in to comment.