aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/0002-reserves_close.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchangedb/0002-reserves_close.sql')
-rw-r--r--src/exchangedb/0002-reserves_close.sql10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/exchangedb/0002-reserves_close.sql b/src/exchangedb/0002-reserves_close.sql
index 52a8d0a56..2db4e5ccd 100644
--- a/src/exchangedb/0002-reserves_close.sql
+++ b/src/exchangedb/0002-reserves_close.sql
@@ -15,13 +15,13 @@
--
CREATE FUNCTION create_table_reserves_close(
- IN partition_suffix VARCHAR DEFAULT NULL
+ IN partition_suffix TEXT DEFAULT NULL
)
RETURNS VOID
LANGUAGE plpgsql
AS $$
DECLARE
- table_name VARCHAR default 'reserves_close';
+ table_name TEXT default 'reserves_close';
BEGIN
PERFORM create_partitioned_table(
'CREATE TABLE %I'
@@ -54,13 +54,13 @@ $$;
CREATE FUNCTION constrain_table_reserves_close(
- IN partition_suffix VARCHAR
+ IN partition_suffix TEXT
)
RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
- table_name VARCHAR default 'reserves_close';
+ table_name TEXT default 'reserves_close';
BEGIN
table_name = concat_ws('_', table_name, partition_suffix);
EXECUTE FORMAT (
@@ -80,7 +80,7 @@ RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
- table_name VARCHAR default 'reserves_close';
+ table_name TEXT default 'reserves_close';
BEGIN
EXECUTE FORMAT (
'ALTER TABLE ' || table_name ||