Skip to content

Commit

Permalink
chore: add a migration that removes incorrectly set sysuserid
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek committed Jan 25, 2024
1 parent b0ecfd4 commit 8dfa5fe
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
exports.up = function (db, cb) {
db.runSql(
`
UPDATE events SET created_by_user_id = null
WHERE
created_by_user_id = -1337 AND
created_by = 'unleash_system_user' OR
created_by = '[email protected]';
`,
cb,
);
};

exports.down = function (db, cb) {
cb();
};

0 comments on commit 8dfa5fe

Please sign in to comment.