mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	feat: change request title migration (#3502)
This commit is contained in:
		
							parent
							
								
									63043bff7e
								
							
						
					
					
						commit
						15e5b983ac
					
				
							
								
								
									
										19
									
								
								src/migrations/20230412062635-add-change-request-title.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								src/migrations/20230412062635-add-change-request-title.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
 | 
			
		||||
exports.up = function (db, callback) {
 | 
			
		||||
    db.runSql(
 | 
			
		||||
        `
 | 
			
		||||
          ALTER TABLE change_requests ADD COLUMN title TEXT;
 | 
			
		||||
        `,
 | 
			
		||||
        callback,
 | 
			
		||||
    );
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.down = function (db, callback) {
 | 
			
		||||
    db.runSql(
 | 
			
		||||
        `
 | 
			
		||||
          ALTER TABLE change_requests DROP COLUMN title;
 | 
			
		||||
        `,
 | 
			
		||||
        callback,
 | 
			
		||||
    );
 | 
			
		||||
};
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user