diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2021-11-28 19:52:37 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2021-11-28 19:52:59 +0100 |
commit | cba49056c47e31f14878457bad9d77e5db9065d7 (patch) | |
tree | 5a8d1302f5ab5120c0aeb616c9e328f6294a84bb /src/exchangedb/benchmark-0001.sql | |
parent | 97bae4dd65854316611c8f440176b063b545618b (diff) | |
download | exchange-cba49056c47e31f14878457bad9d77e5db9065d7.tar.xz |
benchmark skeleton
Diffstat (limited to 'src/exchangedb/benchmark-0001.sql')
-rw-r--r-- | src/exchangedb/benchmark-0001.sql | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/exchangedb/benchmark-0001.sql b/src/exchangedb/benchmark-0001.sql new file mode 100644 index 000000000..07fe49407 --- /dev/null +++ b/src/exchangedb/benchmark-0001.sql @@ -0,0 +1,31 @@ +-- +-- This file is part of TALER +-- Copyright (C) 2014--2021 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; + +-- Check patch versioning is in place. +SELECT _v.register_patch('benchmark-0001', NULL, NULL); + + +CREATE TABLE IF NOT EXISTS benchmap + (reserve_uuid BIGSERIAL UNIQUE + ,hash BYTEA PRIMARY KEY CHECK(LENGTH(hash)=64) + ,expiration_date INT8 NOT NULL + ); + +-- Complete transaction +COMMIT; |