1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/src/migrations/20230927071830-reset-pnps-feedback.js
Fredrik Strand Oseberg ebb76a5354
Feat/reset pnps (#4841)
This PR resets pnps prompts by removing entries in the user_feedback
table
2023-09-27 12:03:02 +02:00

15 lines
282 B
JavaScript

'use strict';
exports.up = function (db, callback) {
db.runSql(
`
DELETE FROM user_feedback WHERE feedback_id = 'pnps' AND given < NOW() - INTERVAL '3 months';
`,
callback(),
);
};
exports.down = function (db, callback) {
callback();
};