mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 02:29:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			279 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			279 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| UPDATE test_definition
 | |
| SET json = jsonb_set(
 | |
|     json::jsonb,
 | |
|     '{supportedDataTypes}',
 | |
|     (json->'supportedDataTypes')::jsonb || '"NUMERIC"'::jsonb,
 | |
|     true
 | |
| )
 | |
| WHERE json->'supportedDataTypes' @> '"NUMBER"'::jsonb
 | |
|   AND NOT (json->'supportedDataTypes' @> '"NUMERIC"'::jsonb); | 
