aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-29 15:46:27 +0100
committerGitHub <noreply@github.com>2020-09-29 15:46:27 +0100
commit2973bb01290b5efe8f373ba8990ad10c2ec025ae (patch)
tree7d36d560bb7d762ee100cded222c90e28b2a7534
parent80b8f0e4240445bc2e73ed5cfd205d0cb5a355ca (diff)
parent346f7c6c0e5d182ed799b3f7d716a8179ebe0407 (diff)
downloadrspamd-2973bb01290b5efe8f373ba8990ad10c2ec025ae.tar.gz
rspamd-2973bb01290b5efe8f373ba8990ad10c2ec025ae.zip
Merge pull request #3494 from ventulis/master
[FIX] Clickhouse Migrations SQL Syntax Error
-rw-r--r--src/plugins/lua/clickhouse.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua
index 280957008..c9d0c71cc 100644
--- a/src/plugins/lua/clickhouse.lua
+++ b/src/plugins/lua/clickhouse.lua
@@ -210,7 +210,7 @@ local migrations = {
[4] = {
[[ALTER TABLE rspamd
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 IF NOT EXISTS COLUMN CustomAction String AFTER Action
+ ADD COLUMN IF NOT EXISTS CustomAction String AFTER Action
]],
-- New version
[[INSERT INTO rspamd_version (Version) Values (5)]],