mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: add migration
This commit is contained in:
		
							parent
							
								
									0ffa01502f
								
							
						
					
					
						commit
						4b05172654
					
				@ -0,0 +1,21 @@
 | 
			
		||||
exports.up = function(db, cb) {
 | 
			
		||||
    db.runSql(
 | 
			
		||||
        `
 | 
			
		||||
    ALTER TABLE projects ADD COLUMN health integer DEFAULT 100;
 | 
			
		||||
  `,
 | 
			
		||||
        cb,
 | 
			
		||||
    );
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.down = function(db, cb) {
 | 
			
		||||
    db.runSql(
 | 
			
		||||
        `
 | 
			
		||||
    ALTER TABLE projects DROP COLUMN health;
 | 
			
		||||
  `,
 | 
			
		||||
        cb,
 | 
			
		||||
    );
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports._meta = {
 | 
			
		||||
    version: 1,
 | 
			
		||||
};
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user