From: Vsevolod Stakhov Date: Thu, 18 Apr 2019 14:38:05 +0000 (+0100) Subject: [Minor] Fix migration X-Git-Tag: 1.9.3~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abd952742b51f2b21931c8b08de5fe024f188f6b;p=thirdparty%2Frspamd.git [Minor] Fix migration --- diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 24dd65e666..501005abbf 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