Skip to content

Commit c479f42

Browse files
committed
added ttl values
1 parent 279760f commit c479f42

40 files changed

+20
-20
lines changed
File renamed without changes.

sql/20230915101844_trivy_misconfig.up.sql renamed to sql/0000010_trivy_misconfig.up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS trivy_misconfig (
1515
misconfig_severity String,
1616
misconfig_status String,
1717
EventTime DateTime('UTC'),
18-
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
18+
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
1919
) ENGINE = MergeTree()
2020
ORDER BY ExpiryDate
2121
TTL ExpiryDate;
File renamed without changes.

sql/20230915101910_trivyimage.up.sql renamed to sql/0000011_trivyimage.up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CREATE TABLE IF NOT EXISTS trivyimage (
1111
vul_severity String,
1212
vul_published_date DateTime('UTC'),
1313
vul_last_modified_date DateTime('UTC'),
14-
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
14+
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
1515
) ENGINE = MergeTree()
1616
ORDER BY ExpiryDate
1717
TTL ExpiryDate;
File renamed without changes.

sql/20230915102122_dockerhubbuild.up.sql renamed to sql/0000012_dockerhubbuild.up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CREATE TABLE IF NOT EXISTS dockerhubbuild (
66
Owner String,
77
Event String,
88
EventTime DateTime('UTC'),
9-
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
9+
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
1010
) ENGINE = MergeTree()
1111
ORDER BY ExpiryDate
1212
TTL ExpiryDate;
File renamed without changes.

sql/20230915102157_azurecontainerpush.up.sql renamed to sql/0000013_azurecontainerpush.up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS azurecontainerpush (
77
Size Int32,
88
SHAID String,
99
EventTime DateTime('UTC'),
10-
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
10+
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
1111
) ENGINE = MergeTree()
1212
ORDER BY ExpiryDate
1313
TTL ExpiryDate;
File renamed without changes.

sql/20230915102229_quaycontainerpush.up.sql renamed to sql/0000014_quaycontainerpush.up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS quaycontainerpush (
77
tag String,
88
Event String,
99
EventTime DateTime('UTC'),
10-
ExpiryDate DateTime DEFAULT now() + INTERVAL 6 MONTH
10+
ExpiryDate DateTime DEFAULT now() + INTERVAL {{.TTLValue}} {{.TTLUnit}}
1111
) ENGINE = MergeTree()
1212
ORDER BY ExpiryDate
1313
TTL ExpiryDate;

0 commit comments

Comments
 (0)