completely changed the NeonSpam settings / scanner management
[NeonServV5.git] / database.upgrade.sql
index f44c5eed6e8bf7534eff384798aba6ada552411e..dbd063d0f8ce8148f665dffa3886bbd32ecfc2a1 100644 (file)
@@ -18,3 +18,44 @@ ALTER TABLE `owner_history` CHANGE `owner_history_uid` `owner_history_to_uid` IN
 ALTER TABLE `owner_history` ADD `owner_history_from_uid` INT( 11 ) NOT NULL AFTER `owner_history_to_uid`;
 
 -- version: 3
+
+ALTER TABLE `channels`
+  DROP `channel_scanstate`,
+  DROP `channel_scanexcept`,
+  DROP `channel_maxrepeat`,
+  DROP `channel_repeatreaction`,
+  DROP `channel_maxflood`,
+  DROP `channel_floodtime`,
+  DROP `channel_floodreaction`,
+  DROP `channel_maxjoin`,
+  DROP `channel_jointime`,
+  DROP `channel_joinreaction`;
+
+ALTER TABLE `channels`  
+  ADD `channel_scanner` VARCHAR(50) NULL,  
+  ADD `channel_spam_limit` SMALLINT(3) NULL,  
+  ADD `channel_spam_reaction` TINYINT(1) NULL,  
+  ADD `channel_spam_reaction_duration` MEDIUMINT(7) NULL,  
+  ADD `channel_spam_except` SMALLINT(3) NULL,  
+  ADD `channel_flood_limit` SMALLINT(3) NULL,  
+  ADD `channel_flood_time` SMALLINT(3) NULL,  
+  ADD `channel_flood_reaction` TINYINT(1) NULL,  
+  ADD `channel_flood_reaction_duration` MEDIUMINT(7) NULL,  
+  ADD `channel_flood_except` SMALLINT(3) NULL,  
+  ADD `channel_join_limit` SMALLINT(3) NULL,  
+  ADD `channel_join_time` SMALLINT(3) NULL,  
+  ADD `channel_join_reaction` TINYINT(1) NULL,  
+  ADD `channel_join_reaction_duration` MEDIUMINT(7) NULL,  
+  ADD `channel_join_except` SMALLINT(3) NULL,  
+  ADD `channel_botnet_bantime` MEDIUMINT(7) NULL,  
+  ADD `channel_botnet_except` SMALLINT(3) NULL,  
+  ADD `channel_caps_percent` TINYINT(3) NULL,  
+  ADD `channel_caps_reaction` TINYINT(1) NULL,  
+  ADD `channel_caps_reaction_duration` MEDIUMINT(7) NULL,  
+  ADD `channel_caps_except` SMALLINT(3) NULL,  
+  ADD `channel_digit_percent` TINYINT(3) NULL,  
+  ADD `channel_digit_reaction` TINYINT(1) NULL,  
+  ADD `channel_digit_reaction_duration` MEDIUMINT(7) NULL,  
+  ADD `channel_digit_except` SMALLINT(3) NULL;
+  
+-- version: 4
\ No newline at end of file