From 9eb80a8d4803798c1c8e153f31ed141fc1af805d Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Tue, 3 Sep 2024 16:27:11 +0300 Subject: [PATCH] chore: clear onboarding events (#8062) Clearing onboarding tables, because the data is invalid and we want to start tracking all of this for only new customers. This migration must be applied after the new logic is implemented. --- .../20240903152133-clear-onboarding-events.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/migrations/20240903152133-clear-onboarding-events.js diff --git a/src/migrations/20240903152133-clear-onboarding-events.js b/src/migrations/20240903152133-clear-onboarding-events.js new file mode 100644 index 0000000000..eab38a7a7a --- /dev/null +++ b/src/migrations/20240903152133-clear-onboarding-events.js @@ -0,0 +1,17 @@ +'use strict'; + +exports.up = function (db, cb) { + db.runSql( + ` + DELETE FROM onboarding_events_instance; + DELETE FROM onboarding_events_project; + `, + cb, + ); +}; + +exports.down = function (db, cb) { + db.runSql( + ``, + cb); +};