checks are actually matched

This commit is contained in:
BC
2018-06-28 21:20:51 -07:00
parent e738349cec
commit 216429bfdb
6 changed files with 79 additions and 50 deletions

View File

@@ -10,10 +10,10 @@ delete from companies;
INSERT INTO companies (code, name, data)
VALUES
('BCBC', 'Brown Chicken Brown Cow', '{:locations ["CB"]}'),
('BSG', 'Bella Saratoga', '{:locations ["SG"]}'),
('BCBC', 'Brown Chicken Brown Cow', '{:locations ["CB"] }'),
('BSG', 'Bella Saratoga', '{:locations ["SG"] }'),
('CBC', 'Campbell Brewing Co', '{:locations ["CB"]}'),
('IBC', 'Iguanas Burritozilla', '{:locations ["DT" "EG" "SC" "EG" "SG" "CB" "BH"]}'),
('IBC', 'Iguanas Burritozilla', '{:locations ["DT" "EG" "SC" "EG" "SG" "CB" "BH"] :bank-accounts [{:number "123456789" :id 1 :check-number 6789 :bank-name "Bank of America" :bank-code "90-4149/1211" :routing "12345678" :name "BOA-6789" :yodlee-account-id 11703936} {:number "987654321" :id 2 :check-number 1234 :bank-name "Bank of America" :bank-code "90-4149/1211" :routing "123456" :name "BOA-4321"}]}'),
('IBCBC', 'Shared CBC-IBC Expenses', '{:locations ["CB"]}'),
('KOG', 'Knock Out Grill & Bar', '{:locations ["SV"]}'),
('LFT', 'Lefty''s East Coast Pizzeria', '{:locations ["SB"]}'),

View File

@@ -0,0 +1,3 @@
-- 1530242355 DOWN add-check-number
alter table transactions drop column check_number;
alter table transactions drop column bank_account_id;

View File

@@ -0,0 +1,3 @@
-- 1530242355 UP add-check-number
alter table transactions add column check_number INT;
alter table transactions add column bank_account_id int;