summaryrefslogtreecommitdiff
path: root/src/exchangedb/0002-global_fee.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchangedb/0002-global_fee.sql')
-rw-r--r--src/exchangedb/0002-global_fee.sql18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/exchangedb/0002-global_fee.sql b/src/exchangedb/0002-global_fee.sql
index 8a63c0101..0a2f9b495 100644
--- a/src/exchangedb/0002-global_fee.sql
+++ b/src/exchangedb/0002-global_fee.sql
@@ -14,7 +14,7 @@
-- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
--
-CREATE TABLE IF NOT EXISTS global_fee
+CREATE TABLE global_fee
(global_fee_serial BIGINT GENERATED BY DEFAULT AS IDENTITY UNIQUE
,start_date INT8 NOT NULL
,end_date INT8 NOT NULL
@@ -35,20 +35,6 @@ COMMENT ON TABLE global_fee
COMMENT ON COLUMN global_fee.global_fee_serial
IS 'needed for exchange-auditor replication logic';
-CREATE INDEX IF NOT EXISTS global_fee_by_end_date_index
+CREATE INDEX global_fee_by_end_date_index
ON global_fee
(end_date);
-
-
-INSERT INTO exchange_tables
- (name
- ,version
- ,action
- ,partitioned
- ,by_range)
- VALUES
- ('global_fee'
- ,'exchange-0002'
- ,'create'
- ,FALSE
- ,FALSE);