From 69603ede7a0d7567f37025eee713975282122d13 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 29 Dec 2008 21:09:44 +0000 Subject: Implemented bharat's suggestions to the comment module in preparation for the spam_filter module --- modules/comment/helpers/comment_installer.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/comment/helpers/comment_installer.php') diff --git a/modules/comment/helpers/comment_installer.php b/modules/comment/helpers/comment_installer.php index f203d940..71b047e5 100644 --- a/modules/comment/helpers/comment_installer.php +++ b/modules/comment/helpers/comment_installer.php @@ -31,14 +31,14 @@ class comment_installer { `created` int(9) NOT NULL, `item_id` int(9) NOT NULL, `url` varchar(255) default NULL, - `visible` tinyint(1) default 1, - PRIMARY KEY (`id`)) + `published` tinyint(1) default 1, + `ip_addr` char(15) default NULL, + `user_agent` varchar(255) default NULL, + `spam_signature` varchar(255) default NULL, + `spam_type` char(15) default NULL, + PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"); - if (module::is_installed("spam_filter")) { - spam_filter_installer::add_fields(); - } - module::set_version("comment", 1); } } -- cgit v1.2.3