added cmd_giveowner
[NeonServV5.git] / DATABASE.txt
index e6d81b49ccfc2b39ea728941f144cf9e2296fb57..783469e2bffd561edca5b946c8a34b0deb24eda5 100644 (file)
@@ -11,5 +11,18 @@ 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` ) ;