0002-preamble.sql (1066B)
1 -- 2 -- This file is part of TALER 3 -- Copyright (C) 2014--2025 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('auditor-0002', NULL, NULL); 20 21 SET search_path TO auditor; 22 23 DO $$ BEGIN 24 CREATE TYPE taler_amount 25 AS 26 (val INT8 27 ,frac INT4 28 ); 29 COMMENT ON TYPE taler_amount 30 IS 'Stores an amount, fraction is in units of 1/100000000 of the base value'; 31 EXCEPTION 32 WHEN duplicate_object THEN null; 33 END $$;