/[drupal]/contributions/modules/spam/spam.mysql
ViewVC logotype

Contents of /contributions/modules/spam/spam.mysql

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.10 - (show annotations) (download)
Sun Apr 17 20:15:18 2005 UTC (4 years, 7 months ago) by jeremy
Branch: MAIN
CVS Tags: DRUPAL-4-5--1-0, DRUPAL-4-6--1-0, HEAD
Branch point for: DRUPAL-4-6
Changes since 1.9: +2 -2 lines
 - spam.module
   o updated to work with Drupal 4.6
   o fixed issues with publishing/unpublishing nodes and comments
   o added ability to mass-delete spam nodes and comments
   o issue #17031: simplified statistics page (needs lots of work)
   o issue #14382: added ability to search/modify old comments
 - spam.mysql
   o issue #18411: mark all primary keys NOT NULL
1 CREATE TABLE spam_tokens (
2 token varchar(255) NOT NULL default '',
3 spam int(10) unsigned default '0',
4 notspam int(10) unsigned default '0',
5 probability int(10) unsigned default '0',
6 last int(11) unsigned default '0',
7 PRIMARY KEY token (token),
8 KEY spam (spam),
9 KEY notspam (notspam),
10 KEY probablitiy (probability),
11 KEY last (last)
12 ) TYPE=MyISAM;
13
14 CREATE TABLE spam_statistics (
15 name varchar(255) NOT NULL default '',
16 value int(10) unsigned default '0',
17 last int(11) unsigned default '0',
18 PRIMARY KEY name (name)
19 ) TYPE=MyISAM;
20
21 CREATE TABLE spam_comments (
22 cid int(10) unsigned NOT NULL default '0',
23 rating int(2) unsigned default '0',
24 spam tinyint(1) unsigned default '0',
25 last int(11) unsigned default '0',
26 PRIMARY KEY cid (cid),
27 KEY rating (rating),
28 KEY spam (spam),
29 KEY last (last)
30 ) TYPE=MyISAM;
31
32 CREATE TABLE spam_custom (
33 scid int(10) unsigned NOT NULL auto_increment,
34 filter varchar(255) NOT NULL default '',
35 regex tinyint(1) unsigned default '0',
36 effect int(2) unsigned default '0',
37 autodelete tinyint(1) unsigned default '0',
38 matches int(11) unsigned default '0',
39 last int(11) unsigned default '0',
40 PRIMARY KEY scid (scid),
41 KEY filter (filter),
42 KEY matches (matches),
43 KEY last (last)
44 ) TYPE=MyISAM;
45
46 CREATE TABLE spam_nodes (
47 nid int(10) unsigned NOT NULL default '0',
48 rating int(2) unsigned default '0',
49 spam tinyint(1) unsigned default '0',
50 hostname varchar(128) NOT NULL default '',
51 last int(11) unsigned default '0',
52 PRIMARY KEY nid (nid),
53 KEY rating (rating),
54 KEY spam (spam),
55 KEY last (last)
56 ) TYPE=MyISAM;

  ViewVC Help
Powered by ViewVC 1.1.2