mirror of https://github.com/louislam/uptime-kuma
				
				
				
			Fix db coloum type for manual monitor (#5921)
							parent
							
								
									55817061c0
								
							
						
					
					
						commit
						3b6a78bd80
					
				| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
// Fix: Change manual_status column type to smallint
 | 
			
		||||
exports.up = function (knex) {
 | 
			
		||||
    return knex.schema
 | 
			
		||||
        .alterTable("monitor", function (table) {
 | 
			
		||||
            table.smallint("manual_status").alter();
 | 
			
		||||
        });
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.down = function (knex) {
 | 
			
		||||
    return knex.schema.alterTable("monitor", function (table) {
 | 
			
		||||
        table.string("manual_status").alter();
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
		Loading…
	
		Reference in New Issue