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!

fixed migrations

Blue Mouse27716e212f83
diff --git a/migrations/clickhouse/2023_05_19.js b/migrations/clickhouse/2023_05_19.js
index 90563aa81..ca8201f23 100644
--- a/migrations/clickhouse/2023_05_19.js
+++ b/migrations/clickhouse/2023_05_19.js
@@ -33,7 +33,7 @@ const queries = [
// Custom events table
`DROP TABLE IF EXISTS ${dbName}.customEV_temp`,
- `CREATE TABLE IF NOT EXISTS ${dbName}.customEV
+ `CREATE TABLE IF NOT EXISTS ${dbName}.customEV_temp
(
pid FixedString(12),
ev String,
@@ -60,7 +60,7 @@ const queries = [
// Performance table
`DROP TABLE IF EXISTS ${dbName}.performance_temp`,
- `CREATE TABLE IF NOT EXISTS ${dbName}.performance
+ `CREATE TABLE IF NOT EXISTS ${dbName}.performance_temp
(
pid FixedString(12),
pg Nullable(String),
@@ -88,7 +88,7 @@ const queries = [
// Captcha table
`DROP TABLE IF EXISTS ${dbName}.captcha_temp`,
- `CREATE TABLE IF NOT EXISTS ${dbName}.captcha
+ `CREATE TABLE IF NOT EXISTS ${dbName}.captcha_temp
(
pid FixedString(12),
dv LowCardinality(Nullable(String)),
diff --git a/migrations/clickhouse/2023_06_26.js b/migrations/clickhouse/2023_06_26.js
index b401f4e18..a7c99a800 100644
--- a/migrations/clickhouse/2023_06_26.js
+++ b/migrations/clickhouse/2023_06_26.js
@@ -36,7 +36,7 @@ const queries = [
// Custom events table: added 'rg' and 'ct' columns
`DROP TABLE IF EXISTS ${dbName}.customEV_temp`,
- `CREATE TABLE IF NOT EXISTS ${dbName}.customEV
+ `CREATE TABLE IF NOT EXISTS ${dbName}.customEV_temp
(
pid FixedString(12),
ev String,
@@ -66,7 +66,7 @@ const queries = [
// Performance table: added 'rg' and 'ct' columns
`DROP TABLE IF EXISTS ${dbName}.performance_temp`,
- `CREATE TABLE IF NOT EXISTS ${dbName}.performance
+ `CREATE TABLE IF NOT EXISTS ${dbName}.performance_temp
(
pid FixedString(12),
pg Nullable(String),