Skip to content

Commit

Permalink
chore: set system user's email to systemuser@ in db
Browse files Browse the repository at this point in the history
This matches the email that is used by the system user defined in
`core.ts`.

This is the companion PR to
#5845. With both of those
merged, the system user in the DB should match the one defined in `core.ts`
  • Loading branch information
thomasheartman committed Jan 11, 2024
1 parent 4a2fc87 commit 7bced94
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/migrations/20240111075911-update-system-user-email.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

exports.up = function (db, callback) {
db.runSql(
`UPDATE users SET email = '[email protected]' WHERE id = -1337;`,
callback,
);
};

exports.down = function (db, callback) {
db.runSql(
`UPDATE users SET email = '[email protected]' WHERE id = -1337;`,
callback,
);
};

0 comments on commit 7bced94

Please sign in to comment.