Fixed upgrade script.
This commit is contained in:
		
							parent
							
								
									02e2c14fc9
								
							
						
					
					
						commit
						0e6c6af2f8
					
				@ -94,10 +94,10 @@ CREATE TABLE IF NOT EXISTS  thingsboard.rule_node (
 | 
			
		||||
    PRIMARY KEY (id)
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
DROP MATERIALIZED VIEW IF EXISTS rule_by_plugin_token;
 | 
			
		||||
DROP MATERIALIZED VIEW IF EXISTS rule_by_tenant_and_search_text;
 | 
			
		||||
DROP MATERIALIZED VIEW IF EXISTS plugin_by_api_token;
 | 
			
		||||
DROP MATERIALIZED VIEW IF EXISTS plugin_by_tenant_and_search_text;
 | 
			
		||||
DROP MATERIALIZED VIEW IF EXISTS thingsboard.rule_by_plugin_token;
 | 
			
		||||
DROP MATERIALIZED VIEW IF EXISTS thingsboard.rule_by_tenant_and_search_text;
 | 
			
		||||
DROP MATERIALIZED VIEW IF EXISTS thingsboard.plugin_by_api_token;
 | 
			
		||||
DROP MATERIALIZED VIEW IF EXISTS thingsboard.plugin_by_tenant_and_search_text;
 | 
			
		||||
 | 
			
		||||
DROP TABLE IF EXISTS rule;
 | 
			
		||||
DROP TABLE IF EXISTS plugin;
 | 
			
		||||
DROP TABLE IF EXISTS thingsboard.rule;
 | 
			
		||||
DROP TABLE IF EXISTS thingsboard.plugin;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user