mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
feat: start tracking user first login
This commit is contained in:
parent
031a2e805a
commit
b81f443722
18
src/migrations/20240828154255-user-first-seen-at.js
Normal file
18
src/migrations/20240828154255-user-first-seen-at.js
Normal file
@ -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);
|
||||
};
|
Loading…
Reference in New Issue
Block a user