diff --git a/src/migrations/20230307110038-add-setting-for-notification-retention.js b/src/migrations/20230307110038-add-setting-for-notification-retention.js new file mode 100644 index 0000000000..57e1e147ff --- /dev/null +++ b/src/migrations/20230307110038-add-setting-for-notification-retention.js @@ -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, + ); +};