commit 346f7c6: [FIX] Clickhouse Migrations SQL Syntax Error
ventulis
72085617+ventulis at users.noreply.github.com
Tue Sep 29 14:49:09 UTC 2020
Author: ventulis
Date: 2020-09-29 16:30:13 +0200
URL: https://github.com/rspamd/rspamd/commit/346f7c6c0e5d182ed799b3f7d716a8179ebe0407 (refs/pull/3494/head)
[FIX] Clickhouse Migrations SQL Syntax Error
---
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 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)]],
More information about the Commits
mailing list