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 0000000000..f1ca2e9cc7 --- /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 = NULL WHERE id = -1337;`, + callback, + ); +}; + +exports.down = function (db, callback) { + db.runSql( + `UPDATE users SET email = 'system@getunleash.io' WHERE id = -1337;`, + callback, + ); +};