commit dbinit aggregated SQL files

This is to avoid the paywall on GNU Taler repository
This commit is contained in:
Swrup 2026-08-21 13:46:53 +02:00
parent e99c0812d7
commit e2961214a0
4 changed files with 14851 additions and 4 deletions

1
.gitignore vendored
View file

@ -1,5 +1,4 @@
_build _build
_dbinit_sql
vendors vendors
assets assets
keys keys

View file

@ -60,9 +60,7 @@ To initialize the database use the `tools/dbinit.sh` script, it aggregates toget
Prepare SQL queries and create the various elements (e.g. sql tables) required to be in the database. Prepare SQL queries and create the various elements (e.g. sql tables) required to be in the database.
``` ```
./tools/dbinit fetch ./tools/dbinit.sh init
./tools/dbinit build
./tools/dbinit init
``` ```
## Dependencies ## Dependencies

38
_dbinit_sql/drop.sql Normal file
View file

@ -0,0 +1,38 @@
--
-- This file is part of TALER
-- Copyright (C) 2014--2022 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/>
--
-- Everything in one big transaction
BEGIN;
WITH xpatches AS (
SELECT patch_name
FROM _v.patches
WHERE starts_with(patch_name,'exchange-')
)
SELECT _v.unregister_patch(xpatches.patch_name)
FROM xpatches;
WITH xpatches AS (
SELECT patch_name
FROM _v.patches
WHERE starts_with(patch_name,'auditor-triggers-')
)
SELECT _v.unregister_patch(xpatches.patch_name)
FROM xpatches;
DROP SCHEMA exchange CASCADE;
COMMIT;

14812
_dbinit_sql/init.sql Normal file

File diff suppressed because it is too large Load diff