0010-wire_accounts.sql (1749B)
1 -- 2 -- This file is part of TALER 3 -- Copyright (C) 2026 Taler Systems SA 4 -- 5 -- TALER is free software; you can redistribute it and/or modify it under the 6 -- terms of the GNU General Public License as published by the Free Software 7 -- Foundation; either version 3, or (at your option) any later version. 8 -- 9 -- TALER is distributed in the hope that it will be useful, but WITHOUT ANY 10 -- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 -- A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 -- 13 -- You should have received a copy of the GNU General Public License along with 14 -- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 -- 16 17 ALTER TABLE wire_accounts 18 ADD COLUMN open_banking_gateway 19 TEXT DEFAULT (NULL) 20 ,ADD COLUMN wire_transfer_gateway 21 TEXT DEFAULT (NULL) 22 ,ADD COLUMN sig_version 23 INT4 DEFAULT 33; -- all existing entries are <= v33 24 COMMENT ON COLUMN wire_accounts.open_banking_gateway 25 IS 'URL of an open banking gateway that can be used to initiate wire transfers to this account; NULL if there is no such service.'; 26 COMMENT ON COLUMN wire_accounts.wire_transfer_gateway 27 IS 'URL of a wire transfer gateway that can be used to obtain (short) wire transfer subjects; NULL if there is no such service.'; 28 COMMENT ON COLUMN wire_accounts.sig_version 29 IS 'Protocol version used by the master_sig in this column. Used to tell which algorithm is needed to verify the signature.'; 30 31 -- The master_sig changes in protocol v33, hence deactivate all old 32 -- signatures/accounts. 33 UPDATE wire_accounts 34 SET is_active=FALSE 35 WHERE sig_version<34; 36 37 -- New signatures will follow protocol >= v34 38 ALTER TABLE wire_accounts 39 ALTER COLUMN sig_version SET DEFAULT 34;