mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
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.
This commit is contained in:
parent
3d63089cb2
commit
9eb80a8d48
17
src/migrations/20240903152133-clear-onboarding-events.js
Normal file
17
src/migrations/20240903152133-clear-onboarding-events.js
Normal file
@ -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);
|
||||
};
|
Loading…
Reference in New Issue
Block a user