- updated and reorganized database schema files - changed config files to show new immunity rules - updated sql-admin-manager so it can update+create tables - added compile.sh file for building plugins in batch - deprecated the old admin-cache immunity api relying on ImmunityType - added a new sm_config table to the schema for storing version numbers --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401409
		
			
				
	
	
		
			16 lines
		
	
	
		
			549 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			549 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
 | 
						|
ALTER TABLE sm_admins ADD immunity INT UNSIGNED NOT NULL;
 | 
						|
 | 
						|
ALTER TABLE sm_groups ADD immunity_level INT UNSIGNED NOT NULL;
 | 
						|
UPDATE sm_groups SET immunity_level = 2 WHERE immunity = 'default';
 | 
						|
UPDATE sm_groups SET immunity_level = 1 WHERE immunity = 'global';
 | 
						|
ALTER TABLE sm_groups DROP immunity;
 | 
						|
 | 
						|
CREATE TABLE sm_config (
 | 
						|
  cfg_key varchar(32) NOT NULL,
 | 
						|
  cfg_value varchar(255) NOT NULL,
 | 
						|
  PRIMARY KEY (cfg_key)
 | 
						|
);
 | 
						|
INSERT INTO sm_config (cfg_key, cfg_value) VALUES ('admin_version', '1.0.0.1409') ON DUPLICATE KEY UPDATE cfg_value = '1.0.0.1409';
 | 
						|
 |