commit 126dd00f2af997142497966a173e74f384ed62db
parent 680a12a962b7e3bb424131d78a75eb2cff87ba7a
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Mon, 4 Aug 2025 16:28:44 +0200
add phone number
Diffstat:
2 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/src/backenddb/Makefile.am b/src/backenddb/Makefile.am
@@ -38,6 +38,7 @@ sql_DATA = \
merchant-0019.sql \
merchant-0020.sql \
merchant-0021.sql \
+ merchant-0022.sql \
drop.sql
BUILT_SOURCES = \
diff --git a/src/backenddb/merchant-0022.sql b/src/backenddb/merchant-0022.sql
@@ -0,0 +1,35 @@
+--
+-- This file is part of TALER
+-- Copyright (C) 2025 Taler Systems SA
+--
+-- TALER is free software; you can redistribute it and/or modify it under the
+-- terms of the GNU General Public License as published by the Free Software
+-- Foundation; either version 3, or (at your option) any later version.
+--
+-- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
+-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+-- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License along with
+-- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+--
+
+-- @file merchant-0022.sql
+-- @brief Add phone number for merchant instances
+-- @author Christian Grothoff
+
+
+BEGIN;
+
+-- Check patch versioning is in place.
+SELECT _v.register_patch('merchant-0022', NULL, NULL);
+
+SET search_path TO merchant;
+
+ALTER TABLE merchant_instances
+ ADD COLUMN phone_number TEXT DEFAULT NULL;
+
+COMMENT ON COLUMN merchant_instances.phone_number
+ IS 'Phone number of the merchant to use for password reset (and to contact the merchant as the backend operator); optional if 2-FA is not used and/or for legacy instances';
+
+COMMIT;