diff --git a/src/migrations/20230927071830-reset-pnps-feedback.js b/src/migrations/20230927071830-reset-pnps-feedback.js new file mode 100644 index 0000000000..d7243762df --- /dev/null +++ b/src/migrations/20230927071830-reset-pnps-feedback.js @@ -0,0 +1,14 @@ +'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(); +};