commit dbinit aggregated SQL files
This is to avoid the paywall on GNU Taler repository
This commit is contained in:
parent
e99c0812d7
commit
e2961214a0
4 changed files with 14851 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,5 +1,4 @@
|
|||
_build
|
||||
_dbinit_sql
|
||||
vendors
|
||||
assets
|
||||
keys
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
```
|
||||
./tools/dbinit fetch
|
||||
./tools/dbinit build
|
||||
./tools/dbinit init
|
||||
./tools/dbinit.sh init
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
|
|
|||
38
_dbinit_sql/drop.sql
Normal file
38
_dbinit_sql/drop.sql
Normal 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
14812
_dbinit_sql/init.sql
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue