mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
feat: start tracking user first login migration (#8006)
Start tracking user first login.
This commit is contained in:
parent
37aef5792b
commit
3188f991f4
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