From a29f04189c8b7457ede0b3ac01222b88853325a8 Mon Sep 17 00:00:00 2001
From: Christian Grothoff <christian@grothoff.org>
Date: Sun, 30 Jul 2023 14:02:40 +0200
Subject: unify to TEXT instead of mixing TEXT and VARCHAR

---
 src/exchangedb/0002-purse_actions.sql | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/exchangedb/0002-purse_actions.sql')

diff --git a/src/exchangedb/0002-purse_actions.sql b/src/exchangedb/0002-purse_actions.sql
index fc09e7fa3..0dd6cfc4d 100644
--- a/src/exchangedb/0002-purse_actions.sql
+++ b/src/exchangedb/0002-purse_actions.sql
@@ -16,13 +16,13 @@
 
 
 CREATE OR REPLACE FUNCTION create_table_purse_actions(
-  IN partition_suffix VARCHAR DEFAULT NULL
+  IN partition_suffix TEXT DEFAULT NULL
 )
 RETURNS VOID
 LANGUAGE plpgsql
 AS $$
 DECLARE
-  table_name VARCHAR DEFAULT 'purse_actions';
+  table_name TEXT DEFAULT 'purse_actions';
 BEGIN
   PERFORM create_partitioned_table(
     'CREATE TABLE IF NOT EXISTS %I'
@@ -84,7 +84,7 @@ RETURNS VOID
 LANGUAGE plpgsql
 AS $$
 DECLARE
-  table_name VARCHAR DEFAULT 'purse_actions';
+  table_name TEXT DEFAULT 'purse_actions';
 BEGIN
   -- Create global index
   CREATE INDEX IF NOT EXISTS purse_action_by_target
-- 
cgit v1.2.3

