challenger-0002.sql (1277B)
1 -- 2 -- This file is part of Challenger 3 -- Copyright (C) 2023 Taler Systems SA 4 -- 5 -- Challenger 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 -- Challenger 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 -- Challenger; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 -- 16 17 -- Everything in one big transaction 18 BEGIN; 19 20 -- Check patch versioning is in place. 21 SELECT _v.register_patch('challenger-0002', NULL, NULL); 22 23 SET search_path TO challenger; 24 25 26 -- Add columns for PKCE (RFC 7636) 27 ALTER TABLE validations 28 ADD COLUMN IF NOT EXISTS code_challenge VARCHAR, 29 ADD COLUMN IF NOT EXISTS code_challenge_method INT4 DEFAULT(0); 30 31 COMMENT ON COLUMN validations.code_challenge 32 IS 'Code challenge used for PKCE'; 33 COMMENT ON COLUMN validations.code_challenge_method 34 IS 'Code challenge method used for PKCE (plain, s256)'; 35 36 COMMIT;