mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
0a67cfed67
This makes the distinction from the event services clearer. In enterprise we'll also rename LoginEventService etc to reflect this rename. In addition this adds a setting for how long of a retention one should have, defaulting to 336 hours (2 weeks)
11 lines
287 B
JavaScript
11 lines
287 B
JavaScript
exports.up = function (db, cb) {
|
|
db.runSql(
|
|
`INSERT INTO settings(name, content) VALUES ('sign_on_log_retention', '{"hours": 336}')`,
|
|
cb,
|
|
);
|
|
};
|
|
|
|
exports.down = function (db, cb) {
|
|
db.runSql(`DELETE FROM settings WHERE name = 'sign_on_log_retention'`, cb);
|
|
};
|