From e9aa04a8f497bdd6675d9d3ca2d25ba6110c3008 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 9 Mar 2011 01:25:49 -0500 Subject: Store mlock in the databases and removed some unused functions from misc.cpp --- data/mysql/tables.sql | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'data') diff --git a/data/mysql/tables.sql b/data/mysql/tables.sql index b3cf06a00..54699c4c8 100644 --- a/data/mysql/tables.sql +++ b/data/mysql/tables.sql @@ -3,7 +3,7 @@ -- http://www.phpmyadmin.net -- -- Host: localhost --- Generation Time: Oct 31, 2010 at 03:02 AM +-- Generation Time: Mar 09, 2011 at 01:23 AM -- Server version: 5.1.50 -- PHP Version: 5.3.3-pl1-gentoo @@ -108,10 +108,6 @@ CREATE TABLE IF NOT EXISTS `anope_cs_info` ( `forbidby` text NOT NULL, `forbidreason` text NOT NULL, `bantype` smallint(6) NOT NULL DEFAULT '0', - `mlock_on` text NOT NULL, - `mlock_off` text NOT NULL, - `mlock_params` text NOT NULL, - `mlock_params_off` text NOT NULL, `memomax` smallint(5) unsigned NOT NULL DEFAULT '0', `botnick` varchar(255) NOT NULL DEFAULT '', `botflags` text NOT NULL, @@ -151,6 +147,22 @@ CREATE TABLE IF NOT EXISTS `anope_cs_levels` ( -- -------------------------------------------------------- +-- +-- Table structure for table `anope_cs_mlock` +-- + +CREATE TABLE IF NOT EXISTS `anope_cs_mlock` ( + `channel` varchar(255) NOT NULL, + `mode` varchar(127) NOT NULL, + `status` int(11) NOT NULL, + `setter` varchar(255) NOT NULL, + `created` int(11) NOT NULL, + `param` varchar(255) NOT NULL, + KEY `FK_anope_cs_mlock` (`channel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- -------------------------------------------------------- + -- -- Table structure for table `anope_cs_ttb` -- @@ -394,6 +406,13 @@ ALTER TABLE `anope_cs_levels` ADD CONSTRAINT `FK_anope_cs_levels_channel` FOREIGN KEY (`channel`) REFERENCES `anope_cs_info` (`name`) ON DELETE CASCADE ON UPDATE CASCADE; +-- +-- Constraints for table `anope_cs_mlock` +-- +ALTER TABLE `anope_cs_mlock` + ADD CONSTRAINT `FK_anope_cs_mlock_channel` FOREIGN KEY (`channel`) REFERENCES `anope_cs_info` (`name`) ON DELETE CASCADE ON +UPDATE CASCADE; + -- -- Constraints for table `anope_cs_ttb` -- -- cgit