commit abd9527: [Minor] Fix migration

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Apr 18 14:42:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-18 15:38:05 +0100
URL: https://github.com/rspamd/rspamd/commit/abd952742b51f2b21931c8b08de5fe024f188f6b (HEAD -> master)

[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


More information about the Commits mailing list