~ubuntu-branches/ubuntu/utopic/spamassassin/utopic-updates

« back to all changes in this revision

Viewing changes to sql/bayes_mysql.sql

  • Committer: Package Import Robot
  • Author(s): Noah Meyerhans
  • Date: 2014-02-14 22:45:15 UTC
  • mfrom: (0.8.1) (0.6.2) (5.1.22 sid)
  • Revision ID: package-import@ubuntu.com-20140214224515-z1es2twos8xh7n2y
Tags: 3.4.0-1
* New upstream version! (Closes: 738963, 738872, 738867)
* Scrub the environment when switching to the debian-spamd user in
  postinst and cron.daily. (Closes: 738951)
* Enhancements to postinst to better manage ownership of
  /var/lib/spamassassin, via Iain Lane <iain.lane@canonical.com>
  (Closes: 738974)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  id int(11) NOT NULL default '0',
4
4
  runtime int(11) NOT NULL default '0',
5
5
  KEY bayes_expire_idx1 (id)
6
 
) TYPE=MyISAM;
 
6
) ENGINE=InnoDB;
7
7
 
8
8
CREATE TABLE bayes_global_vars (
9
9
  variable varchar(30) NOT NULL default '',
10
10
  value varchar(200) NOT NULL default '',
11
11
  PRIMARY KEY  (variable)
12
 
) TYPE=MyISAM;
 
12
) ENGINE=InnoDB;
13
13
 
14
14
INSERT INTO bayes_global_vars VALUES ('VERSION','3');
15
15
 
18
18
  msgid varchar(200) binary NOT NULL default '',
19
19
  flag char(1) NOT NULL default '',
20
20
  PRIMARY KEY  (id,msgid)
21
 
) TYPE=MyISAM;
 
21
) ENGINE=InnoDB;
22
22
 
23
23
CREATE TABLE bayes_token (
24
24
  id int(11) NOT NULL default '0',
25
 
  token char(5) NOT NULL default '',
 
25
  token binary(5) NOT NULL default '',
26
26
  spam_count int(11) NOT NULL default '0',
27
27
  ham_count int(11) NOT NULL default '0',
28
28
  atime int(11) NOT NULL default '0',
29
29
  PRIMARY KEY  (id, token),
30
30
  INDEX bayes_token_idx1 (id, atime)
31
 
) TYPE=MyISAM;
 
31
) ENGINE=InnoDB;
32
32
 
33
33
CREATE TABLE bayes_vars (
34
34
  id int(11) NOT NULL AUTO_INCREMENT,
43
43
  newest_token_age int(11) NOT NULL default '0',
44
44
  PRIMARY KEY  (id),
45
45
  UNIQUE bayes_vars_idx1 (username)
46
 
) TYPE=MyISAM;
 
46
) ENGINE=InnoDB;