mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 02:42:59 +00:00 
			
		
		
		
	 6a9e0b1005
			
		
	
	
		6a9e0b1005
		
			
		
	
	
	
	
		
			
			- Introduce `WorkflowDraftVariable` model and the corresponding migration. - Implement `EnumText`, a custom column type for SQLAlchemy designed to work seamlessly with enumeration classes based on `StrEnum`.
		
			
				
	
	
		
			8 lines
		
	
	
		
			313 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			313 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # The minimal selector length for valid variables.
 | |
| #
 | |
| # The first element of the selector is the node id, and the second element is the variable name.
 | |
| #
 | |
| # If the selector length is more than 2, the remaining parts are the keys / indexes paths used
 | |
| # to extract part of the variable value.
 | |
| MIN_SELECTORS_LENGTH = 2
 |