fix(core): update

This commit is contained in:
Philipp Kunz 2022-03-14 13:54:09 +01:00
parent 2af84de938
commit 100cba8d74

View File

@ -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();