finished cmd_addban
[NeonServV5.git] / DATABASE.txt
index e6d81b49ccfc2b39ea728941f144cf9e2296fb57..c2688f022210d6df2f588deb2bcb1a086adeea1b 100644 (file)
@@ -11,5 +11,23 @@ CREATE TABLE IF NOT EXISTS `godlog` (
   `godlog_time` int(15) NOT NULL,
   `godlog_cmd` varchar(512) NOT NULL,
   PRIMARY KEY (`godlog_id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+) ENGINE=MyISAM;
 
+ALTER TABLE `channels` ADD `channel_lastgiveowner` INT( 11 ) NOT NULL AFTER `channel_lastvisit` 
+
+CREATE TABLE IF NOT EXISTS `owner_history` (
+`owner_history_id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
+`owner_history_cid` INT( 11 ) NOT NULL ,
+`owner_history_uid` INT( 11 ) NOT NULL ,
+`owner_history_time` INT( 11 ) NOT NULL ,
+INDEX ( `owner_history_cid` )
+) ENGINE = MYISAM ;
+
+ALTER TABLE `chanusers` ADD INDEX ( `chanuser_cid` ) ;
+ALTER TABLE `chanusers` ADD INDEX ( `chanuser_uid` ) ;
+
+ALTER TABLE `bot_binds` ADD `chan_access` VARCHAR( 256 ) NULL DEFAULT NULL AFTER `parameters` 
+
+ALTER TABLE `bot_binds` CHANGE `global_access` `global_access` INT( 3 ) NULL 
+
+ALTER TABLE `bans` CHANGE `ban_owner` `ban_owner` INT( 11 ) NOT NULL