summaryrefslogtreecommitdiff
path: root/src/exchangedb/0002-reserves_in.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchangedb/0002-reserves_in.sql')
-rw-r--r--src/exchangedb/0002-reserves_in.sql10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/exchangedb/0002-reserves_in.sql b/src/exchangedb/0002-reserves_in.sql
index c9c76f281..7fc2811dc 100644
--- a/src/exchangedb/0002-reserves_in.sql
+++ b/src/exchangedb/0002-reserves_in.sql
@@ -15,13 +15,13 @@
--
CREATE FUNCTION create_table_reserves_in(
- IN partition_suffix VARCHAR DEFAULT NULL
+ IN partition_suffix TEXT DEFAULT NULL
)
RETURNS VOID
LANGUAGE plpgsql
AS $$
DECLARE
- table_name VARCHAR default 'reserves_in';
+ table_name TEXT default 'reserves_in';
BEGIN
PERFORM create_partitioned_table(
'CREATE TABLE %I'
@@ -64,13 +64,13 @@ END $$;
CREATE FUNCTION constrain_table_reserves_in(
- IN partition_suffix VARCHAR
+ IN partition_suffix TEXT
)
RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
- table_name VARCHAR default 'reserves_in';
+ table_name TEXT default 'reserves_in';
BEGIN
table_name = concat_ws('_', table_name, partition_suffix);
EXECUTE FORMAT (
@@ -107,7 +107,7 @@ RETURNS VOID
LANGUAGE plpgsql
AS $$
DECLARE
- table_name VARCHAR DEFAULT 'reserves_in';
+ table_name TEXT DEFAULT 'reserves_in';
BEGIN
EXECUTE FORMAT (
'ALTER TABLE ' || table_name ||