exchange-0008.sql (1463B)
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 BEGIN; 18 19 SELECT _v.register_patch('exchange-0008', NULL, NULL); 20 21 SET search_path TO exchange; 22 23 CREATE FUNCTION alter_table_batch_deposits8() 24 RETURNS void 25 LANGUAGE plpgsql 26 AS $$ 27 DECLARE 28 BEGIN 29 ALTER TABLE batch_deposits 30 ADD COLUMN extra_wire_subject_metadata 31 TEXT DEFAULT (NULL); 32 END 33 $$; 34 35 CREATE FUNCTION alter_table_wire_out8() 36 RETURNS void 37 LANGUAGE plpgsql 38 AS $$ 39 DECLARE 40 BEGIN 41 ALTER TABLE wire_out 42 ADD COLUMN extra_wire_subject_metadata 43 TEXT DEFAULT (NULL); 44 END 45 $$; 46 47 48 INSERT INTO exchange_tables 49 (name 50 ,version 51 ,action 52 ,partitioned 53 ,by_range) 54 VALUES 55 ('batch_deposits8' 56 ,'exchange-0008' 57 ,'alter' 58 ,TRUE 59 ,FALSE), 60 ('wire_out8' 61 ,'exchange-0008' 62 ,'alter' 63 ,TRUE 64 ,FALSE); 65 66 67 COMMIT;