]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/t/lp1474051-drop-cc-columns.pg
LP1615805 No inputs after submit in patron search (AngularJS)
[working/Evergreen.git] / Open-ILS / src / sql / Pg / t / lp1474051-drop-cc-columns.pg
1 -- Load the TAP functions.
2 BEGIN;
3
4 -- Plan the tests.
5 SELECT plan(6);
6
7 -- Run the tests.
8
9 SELECT hasnt_column('money', 'credit_card_payment', 'cc_type', 
10     'Column "cc_type" on money.credit_card_payment should not exist');
11 SELECT hasnt_column('money', 'credit_card_payment', 'expire_month', 
12     'Column "expire_month" on money.credit_card_payment should not exist');
13 SELECT hasnt_column('money', 'credit_card_payment', 'expire_year', 
14     'Column "expire_year" on money.credit_card_payment should not exist');
15 SELECT hasnt_column('money', 'credit_card_payment', 'cc_first_name', 
16     'Column "cc_first_name" on money.credit_card_payment should not exist');
17 SELECT hasnt_column('money', 'credit_card_payment', 'cc_last_name', 
18     'Column "cc_last_name" on money.credit_card_payment should not exist');
19
20 -- make sure at least one column does exist
21 SELECT has_column('money', 'credit_card_payment', 'approval_code', 
22     'Column "approval_code" on money.credit_card_payment should exist');
23
24 -- Finish the tests and clean up.
25 SELECT * FROM finish();
26 ROLLBACK;