merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit bd4c47a97b170b034c8eac9b01686892c8201db7
parent 834aa19f9c6c0dff4f1ad091dd354f123b4cc9f5
Author: Florian Dold <florian@dold.me>
Date:   Tue, 15 Apr 2025 21:04:32 +0200

migration for admin instance

Diffstat:
Msrc/backenddb/Makefile.am | 1+
Asrc/backenddb/merchant-0016.sql | 31+++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/src/backenddb/Makefile.am b/src/backenddb/Makefile.am @@ -32,6 +32,7 @@ sql_DATA = \ merchant-0013.sql \ merchant-0014.sql \ merchant-0015.sql \ + merchant-0016.sql \ drop.sql BUILT_SOURCES = \ diff --git a/src/backenddb/merchant-0016.sql b/src/backenddb/merchant-0016.sql @@ -0,0 +1,31 @@ +-- +-- 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-0016.sql +-- @brief Rename default instance to admin instance +-- @author Florian Dold + + +BEGIN; + +-- Check patch versioning is in place. +SELECT _v.register_patch('merchant-0016', NULL, NULL); + +SET search_path TO merchant; + +UPDATE merchant_instances SET merchant_id='admin' WHERE merchant_id='default'; + +COMMIT;