mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Updates it from 'system@getunleash.io' to `null`. We don't have that address registered (and probably don't want it), so we'll leave it empty. This is a companion PR to https://github.com/Unleash/unleash/pull/5893. With both of those merged, the system user in the DB should match the one defined in `core.ts`
		
			
				
	
	
		
			16 lines
		
	
	
		
			318 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			318 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| '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,
 | |
|     );
 | |
| };
 |