Skip to content

Commit

Permalink
feat: start tracking user first login migration (#8006)
Browse files Browse the repository at this point in the history
Start tracking user first login.
  • Loading branch information
sjaanus authored Aug 28, 2024
1 parent 37aef57 commit 3188f99
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/migrations/20240828154255-user-first-seen-at.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict';

exports.up = function (db, cb) {
db.runSql(
`
ALTER TABLE users ADD COLUMN first_seen_at TIMESTAMP WITHOUT TIME ZONE;
`,
cb,
);
};

exports.down = function (db, cb) {
db.runSql(
`
ALTER TABLE users DROP COLUMN first_seen_at;
`,
cb);
};

0 comments on commit 3188f99

Please sign in to comment.