From cbb64b61272fb1fe508d0a2003d0f18f8344b2ef Mon Sep 17 00:00:00 2001 From: "fox.cpp" Date: Sat, 21 Aug 2021 09:23:29 +0300 Subject: [PATCH] table/sql_table: Fix incorrect for PostgreSQL type being used in table creation See #386. --- internal/table/sql_table.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/table/sql_table.go b/internal/table/sql_table.go index 19c97f6..e793dc4 100644 --- a/internal/table/sql_table.go +++ b/internal/table/sql_table.go @@ -136,8 +136,8 @@ func (s *SQLTable) Init(cfg *config.Map) error { { Name: "init", Args: []string{fmt.Sprintf(`CREATE TABLE IF NOT EXISTS %s ( - %s LONGTEXT PRIMARY KEY NOT NULL, - %s LONGTEXT NOT NULL + %s TEXT PRIMARY KEY NOT NULL, + %s TEXT NOT NULL )`, tableName, keyColumn, valueColumn)}, }, },