1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +02:00

add notifications_retention setting

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
andreas-unleash 2023-03-07 13:04:55 +02:00
parent e4b84bc2a3
commit 07661b3f49
No known key found for this signature in database
GPG Key ID: DB82A1577B38F66B

View File

@ -0,0 +1,13 @@
exports.up = function (db, cb) {
db.runSql(
`INSERT INTO settings(name, content) VALUES ('notifications_retention', '{"hours": 720}')`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(
`DELETE FROM settings WHERE name = 'notifications_retention'`,
cb,
);
};