mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	chore: migration for new archive columns on release defintion (#9412)
This commit is contained in:
		
							parent
							
								
									d04b8496ea
								
							
						
					
					
						commit
						2ae447cd40
					
				
							
								
								
									
										11
									
								
								src/migrations/20250304122705-archive-release-template.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								src/migrations/20250304122705-archive-release-template.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
			
		||||
exports.up = (db, cb) => {
 | 
			
		||||
    db.runSql(`
 | 
			
		||||
        ALTER TABLE release_plan_definitions ADD COLUMN archived_at TIMESTAMP WITH TIME ZONE;
 | 
			
		||||
    `, cb);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.down = (db, cb) => {
 | 
			
		||||
    db.runSql(`
 | 
			
		||||
        ALTER TABLE release_plan_definitions DROP COLUMN archived_at;
 | 
			
		||||
    `, cb);
 | 
			
		||||
};
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user