| 
									
										
										
										
											2022-12-26 12:32:17 -08:00
										 |  |  | ALTER TABLE tag_category
 | 
					
						
							| 
									
										
										
										
											2022-12-27 19:09:17 +01:00
										 |  |  | RENAME TO classification;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | -- Rename tagCategoryName in BigQuery for classificationName
 | 
					
						
							|  |  |  | UPDATE dbservice_entity
 | 
					
						
							|  |  |  | SET json = jsonb_set(json, '{connection,config,classificationName}', json#>'{connection,config,tagCategoryName}')
 | 
					
						
							|  |  |  | where serviceType in ('BigQuery')
 | 
					
						
							|  |  |  |   and json#>'{connection,config,tagCategoryName}' is not null;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | -- Deprecate SampleData db service type
 | 
					
						
							|  |  |  | DELETE FROM entity_relationship er
 | 
					
						
							|  |  |  | USING dbservice_entity db
 | 
					
						
							|  |  |  | WHERE (db.id = er.fromId OR db.id = er.toId)
 | 
					
						
							|  |  |  |   AND db.serviceType = 'SampleData';
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DELETE FROM dbservice_entity WHERE serviceType = 'SampleData';
 | 
					
						
							| 
									
										
										
										
											2023-01-05 12:03:07 +05:30
										 |  |  | 
 | 
					
						
							|  |  |  | -- Delete supportsUsageExtraction from vertica
 | 
					
						
							|  |  |  | UPDATE dbservice_entity
 | 
					
						
							|  |  |  | SET json = json::jsonb #- '{connection,config,supportsUsageExtraction}'
 | 
					
						
							|  |  |  | WHERE serviceType = 'Vertica';
 |