mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	feat(2-1879): add enabled to action sets (#6023)
## About the changes Adds enabled to action sets table
This commit is contained in:
		
							parent
							
								
									5d1d428746
								
							
						
					
					
						commit
						cee2500a4d
					
				
							
								
								
									
										17
									
								
								src/migrations/20240124123000-add-enabled-to-action-sets.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								src/migrations/20240124123000-add-enabled-to-action-sets.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,17 @@
 | 
			
		||||
exports.up = function (db, cb) {
 | 
			
		||||
    db.runSql(
 | 
			
		||||
        `
 | 
			
		||||
        ALTER TABLE action_sets ADD COLUMN enabled BOOLEAN DEFAULT true;
 | 
			
		||||
        `,
 | 
			
		||||
        cb,
 | 
			
		||||
    );
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.down = function (db, cb) {
 | 
			
		||||
    db.runSql(
 | 
			
		||||
        `
 | 
			
		||||
        ALTER TABLE action_sets DROP COLUMN enabled;
 | 
			
		||||
        `,
 | 
			
		||||
        cb,
 | 
			
		||||
    );
 | 
			
		||||
};
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user