mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			333 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			333 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
db.users.update({}, {
 | 
						|
	$unset: {
 | 
						|
		likes_count: 1,
 | 
						|
		liked_count: 1
 | 
						|
	}
 | 
						|
}, false, true)
 | 
						|
 | 
						|
db.likes.renameCollection('post_reactions')
 | 
						|
 | 
						|
db.post_reactions.update({}, {
 | 
						|
	$set: {
 | 
						|
		reaction: 'like'
 | 
						|
	}
 | 
						|
}, false, true)
 | 
						|
 | 
						|
db.posts.update({}, {
 | 
						|
	$rename: {
 | 
						|
		likes_count: 'reaction_counts.like'
 | 
						|
	}
 | 
						|
}, false, true);
 | 
						|
 | 
						|
db.notifications.remove({})
 |