mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	chore: add reason column to change request schedule table (#5802)
				
					
				
			This PR adds a new `reason` column to the change request schedules table and populates it with the data that is in the `failure_reason` column. This is the expand phase of the expand/contract pattern. The code in enterprise will be updated to try and use the new column name, but fall back to the old one if no value is present. The old column can be removed later.
This commit is contained in:
		
							parent
							
								
									721a85de21
								
							
						
					
					
						commit
						e8ffea3920
					
				| @ -0,0 +1,16 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| exports.up = function (db, cb) { | ||||
|     db.runSql( | ||||
|         `ALTER TABLE change_request_schedule ADD COLUMN reason TEXT;
 | ||||
|          UPDATE change_request_schedule SET reason = failure_reason;`,
 | ||||
|         cb, | ||||
|     ); | ||||
| }; | ||||
| 
 | ||||
| exports.down = function (db, cb) { | ||||
|     db.runSql( | ||||
|         `ALTER TABLE change_request_schedule DROP COLUMN reason;`, | ||||
|         cb, | ||||
|     ); | ||||
| }; | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user