Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

dropped 'lt' column

Blue Mouse7039f7d807a7
diff --git a/migrations/clickhouse/2022_12_29.js b/migrations/clickhouse/2022_12_29.js
new file mode 100644
index 000000000..f61271de9
--- /dev/null
+++ b/migrations/clickhouse/2022_12_29.js
@@ -0,0 +1,7 @@
+const { queriesRunner, dbName } = require('./setup')
+
+const queries = [
+ `DROP COLUMN ${dbName}.lt`,
+]
+
+queriesRunner(queries)
diff --git a/src/analytics/analytics.controller.ts b/src/analytics/analytics.controller.ts
index 10f5efc12..8dcbbc263 100644
--- a/src/analytics/analytics.controller.ts
+++ b/src/analytics/analytics.controller.ts
@@ -86,7 +86,6 @@ const analyticsDTO = (
so: string,
me: string,
ca: string,
- lt: number | string,
cc: string,
sdur: number | string,
unique: number,
@@ -103,7 +102,6 @@ const analyticsDTO = (
so,
me,
ca,
- lt,
cc,
sdur,
unique,
@@ -528,7 +526,6 @@ export class AnalyticsController {
logDTO.so,
logDTO.me,
logDTO.ca,
- 'NULL' /* logDTO.lt */,
cc,
0,
1,
@@ -548,7 +545,6 @@ export class AnalyticsController {
'NULL',
'NULL',
'NULL',
- 'NULL',
0,
)
} else {
@@ -624,7 +620,6 @@ export class AnalyticsController {
'NULL',
'NULL',
'NULL',
- 'NULL',
cc,
0,
1,
@@ -644,7 +639,6 @@ export class AnalyticsController {
'NULL',
'NULL',
'NULL',
- 'NULL',
0,
)
}
diff --git a/src/common/constants.ts b/src/common/constants.ts
index 69dcb7a7d..bf55d20d8 100644
--- a/src/common/constants.ts
+++ b/src/common/constants.ts
@@ -56,7 +56,6 @@ const CLICKHOUSE_INIT_QUERIES = [
so Nullable(String),
me Nullable(String),
ca Nullable(String),
- lt Nullable(UInt16),
cc Nullable(FixedString(2)),
sdur Nullable(UInt32),
unique UInt8,