From 100cba8d7407b14aff2025b6f62fa35e8d878db6 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 14 Mar 2022 13:54:09 +0100 Subject: [PATCH] fix(core): update --- ts/smartclickhouse.classes.timedatatable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/smartclickhouse.classes.timedatatable.ts b/ts/smartclickhouse.classes.timedatatable.ts index ad19694..181d511 100644 --- a/ts/smartclickhouse.classes.timedatatable.ts +++ b/ts/smartclickhouse.classes.timedatatable.ts @@ -41,7 +41,7 @@ export class TimeDataTable { // lets adjust the TTL await smartClickHouseDbRefArg.clickhouseClient .queryPromise(` - ALTER TABLE ${newTable.tableName} MODIFY TTL toDateTime(timestamp) + INTERVAL 2 DAY + ALTER TABLE ${newTable.tableName} MODIFY TTL toDateTime(timestamp) + INTERVAL 1 MONTH `); await newTable.updateColumns();