Skip to content

Commit

Permalink
feat: collect onboarding events in separate table
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Aug 30, 2024
1 parent d626def commit 97cdc8c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/migrations/20240830102144-onboarding-events.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
'use strict';

exports.up = function (db, cb) {
db.runSql(
`
CREATE TABLE onboarding_events (
event VARCHAR(50) NOT NULL,
diff INTEGER NOT NULL,
project VARCHAR(255),
PRIMARY KEY (event, project)
);
`,
cb,
);
};

exports.down = function (db, cb) {
db.runSql(
`
DROP TABLE IF EXISTS onboarding_events;
`,
cb);
};

0 comments on commit 97cdc8c

Please sign in to comment.