From abd952742b51f2b21931c8b08de5fe024f188f6b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 18 Apr 2019 15:38:05 +0100 Subject: [PATCH] [Minor] Fix migration --- src/plugins/lua/clickhouse.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 24dd65e66..501005abb 100644 --- a/src/plugins/lua/clickhouse.lua +++ b/src/plugins/lua/clickhouse.lua @@ -188,7 +188,7 @@ local migrations = { }, [4] = { [[ALTER TABLE rspamd - Action Enum8('reject' = 0, 'rewrite subject' = 1, 'add header' = 2, 'greylist' = 3, 'no action' = 4, 'soft reject' = 5, 'custom' = 6) DEFAULT 'no action', + MODIFY COLUMN Action Enum8('reject' = 0, 'rewrite subject' = 1, 'add header' = 2, 'greylist' = 3, 'no action' = 4, 'soft reject' = 5, 'custom' = 6) DEFAULT 'no action', ADD COLUMN CustomAction String AFTER Action ]], -- New version -- 2.39.5