aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/0002-reserves_open_deposits.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchangedb/0002-reserves_open_deposits.sql')
-rw-r--r--src/exchangedb/0002-reserves_open_deposits.sql8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/exchangedb/0002-reserves_open_deposits.sql b/src/exchangedb/0002-reserves_open_deposits.sql
index c4cb4c300..b1a292dd4 100644
--- a/src/exchangedb/0002-reserves_open_deposits.sql
+++ b/src/exchangedb/0002-reserves_open_deposits.sql
@@ -15,13 +15,13 @@
--
CREATE FUNCTION create_table_reserves_open_deposits(
- IN partition_suffix VARCHAR DEFAULT NULL
+ IN partition_suffix TEXT DEFAULT NULL
)
RETURNS VOID
LANGUAGE plpgsql
AS $$
DECLARE
- table_name VARCHAR default 'reserves_open_deposits';
+ table_name TEXT default 'reserves_open_deposits';
BEGIN
PERFORM create_partitioned_table(
'CREATE TABLE %I'
@@ -52,13 +52,13 @@ $$;
CREATE FUNCTION constrain_table_reserves_open_deposits(
- IN partition_suffix VARCHAR
+ IN partition_suffix TEXT
)
RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
- table_name VARCHAR default 'reserves_open_deposits';
+ table_name TEXT default 'reserves_open_deposits';
BEGIN
table_name = concat_ws('_', table_name, partition_suffix);
EXECUTE FORMAT (