Skip to content

Commit

Permalink
chore: dont reset already migrated records for unkown, migration and …
Browse files Browse the repository at this point in the history
…init-api-tokens
  • Loading branch information
daveleek committed Jan 26, 2024
1 parent 8dfa5fe commit faf6c77
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ exports.up = function (db, cb) {
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]';
created_by NOT IN (
'unknown',
'migration',
'init-api-tokens',
'unleash_system_user',
'[email protected]')
`,
cb,
);
Expand Down

0 comments on commit faf6c77

Please sign in to comment.