diff --git a/src/migrations/20240111075911-update-system-user-email.js b/src/migrations/20240111075911-update-system-user-email.js new file mode 100644 index 000000000000..aa3ae8767bad --- /dev/null +++ b/src/migrations/20240111075911-update-system-user-email.js @@ -0,0 +1,15 @@ +'use strict'; + +exports.up = function (db, callback) { + db.runSql( + `UPDATE users SET email = 'systemuser@getunleash.io' WHERE id = -1337;`, + callback, + ); +}; + +exports.down = function (db, callback) { + db.runSql( + `UPDATE users SET email = 'system@getunleash.io' WHERE id = -1337;`, + callback, + ); +};