1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/src/migrations/20230227123106-add-setting-for-sign-on-log-retention.js

11 lines
287 B
JavaScript
Raw Normal View History

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