mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	feat: add status fields for feature lifecycle table (#7014)
This commit is contained in:
		
							parent
							
								
									0f65f8a943
								
							
						
					
					
						commit
						8ea034cc2f
					
				| @ -10,6 +10,8 @@ import type { StageName } from '../../types'; | ||||
| type DBType = { | ||||
|     stage: StageName; | ||||
|     created_at: string; | ||||
|     status?: string; | ||||
|     status_value?: string; | ||||
| }; | ||||
| 
 | ||||
| type DBProjectType = DBType & { | ||||
|  | ||||
							
								
								
									
										16
									
								
								src/migrations/20240508153244-feature-lifecycles-status.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								src/migrations/20240508153244-feature-lifecycles-status.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | ||||
| exports.up = function (db, cb) { | ||||
|     db.runSql(` | ||||
|         ALTER TABLE feature_lifecycles ADD COLUMN IF NOT EXISTS status TEXT; | ||||
|         ALTER TABLE feature_lifecycles ADD COLUMN IF NOT EXISTS status_value TEXT; | ||||
|     `, cb);
 | ||||
| }; | ||||
| 
 | ||||
| exports.down = function (db, cb) { | ||||
|     db.runSql( | ||||
|         ` | ||||
|          ALTER TABLE feature_lifecycles DROP COLUMN IF EXISTS status; | ||||
|          ALTER TABLE feature_lifecycles DROP COLUMN IF EXISTS status_value; | ||||
|         `,
 | ||||
|         cb, | ||||
|     ); | ||||
| }; | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user