mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-04 12:36:23 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			249 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			249 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
-- Update entity_extension to move domain to array
 | 
						|
update entity_extension set json = JSON_SET(
 | 
						|
    JSON_REMOVE(json, '$.domain'),
 | 
						|
    '$.domains',
 | 
						|
    JSON_ARRAY(
 | 
						|
        JSON_EXTRACT(json, '$.domain')
 | 
						|
    )
 | 
						|
) where json -> '$.domain' is not null;
 |