1
0
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:
Jaanus Sellin 2024-08-28 16:27:09 +03:00 committed by GitHub
parent 37aef5792b
commit 3188f991f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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);
};