/[smecontribs]/rpms/smeserver-mailstats/contribs7/smeserver-mailstats-0.0.3-implementDBCreation.patch
ViewVC logotype

Annotation of /rpms/smeserver-mailstats/contribs7/smeserver-mailstats-0.0.3-implementDBCreation.patch

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


Revision 1.2 - (hide annotations) (download)
Sat Oct 11 23:29:50 2008 UTC (16 years, 1 month ago) by snetram
Branch: MAIN
CVS Tags: smeserver-mailstats-0_0_3-13_el4_sme, smeserver-mailstats-0_0_3-12_el4_sme
Changes since 1.1: +19 -240 lines
* Sun Oct 12 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.0.3-12
- Fix patches to apply cleanly [SME: 3631]
- Execute the database creation script as well [SME: 4275]
- TODO: Add createlinks script to source

1 snetram 1.2 --- smeserver-mailstats-0.0.3/root/etc/e-smith/templates/etc/e-smith/sql/init/smeserver-mailstats.sql.implementDBCreation 2008-10-12 01:05:19.000000000 +0200
2     +++ smeserver-mailstats-0.0.3/root/etc/e-smith/templates/etc/e-smith/sql/init/smeserver-mailstats.sql 2008-10-12 01:05:19.000000000 +0200
3     @@ -0,0 +1,91 @@
4     +CREATE DATABASE IF NOT EXISTS `mailstats`;
5 snetram 1.1 +
6     +USE `mailstats`;
7     +
8 snetram 1.2 +CREATE TABLE IF NOT EXISTS `ColumnStats` (
9 snetram 1.1 + `ColumnStatsid` int(11) NOT NULL auto_increment,
10     + `dateid` int(11) NOT NULL default '0',
11     + `timeid` int(11) NOT NULL default '0',
12     + `descr` varchar(20) NOT NULL default '',
13     + `count` bigint(20) NOT NULL default '0',
14     + `servername` varchar(30) NOT NULL default '',
15     + PRIMARY KEY (`ColumnStatsid`)
16     +) ENGINE=MyISAM DEFAULT CHARSET=latin1;
17     +
18 snetram 1.2 +CREATE TABLE IF NOT EXISTS `JunkMailStats` (
19 snetram 1.1 + `JunkMailstatsid` int(11) NOT NULL auto_increment,
20     + `dateid` int(11) NOT NULL default '0',
21 snetram 1.2 + `user` varchar(12) NOT NULL default '',
22 snetram 1.1 + `count` bigint(20) NOT NULL default '0',
23     + `servername` varchar(30) default NULL,
24     + PRIMARY KEY (`JunkMailstatsid`)
25     +) ENGINE=MyISAM DEFAULT CHARSET=latin1;
26     +
27 snetram 1.2 +CREATE TABLE IF NOT EXISTS `SARules` (
28 snetram 1.1 + `SARulesid` int(11) NOT NULL auto_increment,
29     + `dateid` int(11) NOT NULL default '0',
30     + `rule` varchar(50) NOT NULL default '',
31     + `count` bigint(20) NOT NULL default '0',
32     + `totalhits` bigint(20) NOT NULL default '0',
33     + `servername` varchar(30) NOT NULL default '',
34     + PRIMARY KEY (`SARulesid`)
35     +) ENGINE=MyISAM DEFAULT CHARSET=latin1;
36     +
37 snetram 1.2 +CREATE TABLE IF NOT EXISTS `SAscores` (
38 snetram 1.1 + `SAscoresid` int(11) NOT NULL auto_increment,
39     + `dateid` int(11) NOT NULL default '0',
40     + `acceptedcount` bigint(20) NOT NULL default '0',
41     + `rejectedcount` bigint(20) NOT NULL default '0',
42     + `hamcount` bigint(20) NOT NULL default '0',
43     + `acceptedscore` decimal(20,2) NOT NULL default '0.00',
44     + `rejectedscore` decimal(20,2) NOT NULL default '0.00',
45     + `hamscore` decimal(20,2) NOT NULL default '0.00',
46     + `totalsmtp` bigint(20) NOT NULL default '0',
47     + `totalrecip` bigint(20) NOT NULL default '0',
48     + `servername` varchar(30) NOT NULL default '',
49     + PRIMARY KEY (`SAscoresid`)
50     +) ENGINE=MyISAM DEFAULT CHARSET=latin1;
51     +
52 snetram 1.2 +CREATE TABLE IF NOT EXISTS `VirusStats` (
53 snetram 1.1 + `VirusStatsid` int(11) NOT NULL auto_increment,
54     + `dateid` int(11) NOT NULL default '0',
55     + `descr` varchar(40) NOT NULL default '',
56     + `count` bigint(20) NOT NULL default '0',
57     + `servername` varchar(30) NOT NULL default '',
58     + PRIMARY KEY (`VirusStatsid`)
59     +) ENGINE=MyISAM DEFAULT CHARSET=latin1;
60     +
61 snetram 1.2 +CREATE TABLE IF NOT EXISTS `date` (
62 snetram 1.1 + `dateid` int(11) NOT NULL auto_increment,
63     + `date` date NOT NULL default '0000-00-00',
64     + PRIMARY KEY (`dateid`)
65     +) ENGINE=MyISAM DEFAULT CHARSET=latin1;
66     +
67 snetram 1.2 +
68     +CREATE TABLE IF NOT EXISTS `domains` (
69 snetram 1.1 + `domainsid` int(11) NOT NULL auto_increment,
70     + `dateid` int(11) NOT NULL default '0',
71     + `domain` varchar(40) NOT NULL default '',
72     + `type` varchar(10) NOT NULL default '',
73     + `total` bigint(20) NOT NULL default '0',
74     + `denied` bigint(20) NOT NULL default '0',
75     + `xfererr` bigint(20) NOT NULL default '0',
76     + `accept` bigint(20) NOT NULL default '0',
77     + `servername` varchar(30) NOT NULL default '',
78     + PRIMARY KEY (`domainsid`)
79     +) ENGINE=MyISAM DEFAULT CHARSET=latin1;
80     +
81 snetram 1.2 +CREATE TABLE IF NOT EXISTS `qpsmtpdcodes` (
82 snetram 1.1 + `qpsmtpdcodesid` int(11) NOT NULL auto_increment,
83     + `dateid` int(11) NOT NULL default '0',
84     + `reason` varchar(40) NOT NULL default '',
85     + `count` bigint(20) NOT NULL default '0',
86     + `servername` varchar(30) NOT NULL default '',
87     + PRIMARY KEY (`qpsmtpdcodesid`)
88     +) ENGINE=MyISAM DEFAULT CHARSET=latin1;
89     +
90 snetram 1.2 +CREATE TABLE IF NOT EXISTS `time` (
91 snetram 1.1 + `timeid` int(11) NOT NULL auto_increment,
92     + `time` time NOT NULL default '00:00:00',
93     + PRIMARY KEY (`timeid`)
94     +) ENGINE=MyISAM DEFAULT CHARSET=latin1;
95 snetram 1.2 --- smeserver-mailstats-0.0.3/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/smeserver-mailstats.sql.implementDBCreation 2008-10-12 00:54:31.000000000 +0200
96     +++ smeserver-mailstats-0.0.3/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/smeserver-mailstats.sql 2008-10-12 00:55:01.000000000 +0200
97     @@ -0,0 +1 @@
98     +PERMS=0540

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed