ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/db/empty.sql
(Generate patch)

Comparing projects/cms/source/server/db/empty.sql (file contents):
Revision 1.3 by pjm2, Wed Nov 29 10:51:37 2000 UTC vs.
Revision 1.6 by pjm2, Thu Mar 1 19:24:27 2001 UTC

# Line 1 | Line 1
1  
2   #
3   # This is the full definition of our (initially empty)
4 < # SQL database for i-scream logging.
4 > # SQL database for i-scream logging.  This reflects the
5 > # changes made after our original design proved to be
6 > # too large after a short amount of time.  Now, the
7 > # original XML strings are stored in the database, keyed
8 > # only by a few essential fields.
9   #
10 <
11 <
10 > # $Author$
11 > # $Id$
12   #
9 # Please note that as most records logged are stored
10 # over more than one table, it will be ESSENTIAL to
11 # place a write lock on all affected tables, removing
12 # it when done.
13 #
14
15 #
13   # Host: localhost Database : co600_10_db
14   #
18
19 # --------------------------------------------------------
15   #
16 < # Table structure for table 'cpu'
16 > # Table structure for table 'ipacket'
17   #
18  
19 < CREATE TABLE cpu (
20 <   id bigint(20) DEFAULT '0' NOT NULL,
26 <   cpu_no tinyint(4) DEFAULT '0' NOT NULL,
27 <   cpu_load float(10,2) DEFAULT '0.00' NOT NULL,
28 <   KEY id (id),
29 <   KEY id_2 (id),
30 <   KEY id_3 (id)
31 < );
19 > # Drop the table if it already exists.
20 > DROP TABLE IF EXISTS ipacket;
21  
22 < #
23 < # Dumping data for table 'cpu'
35 < #
36 <
37 <
38 < # --------------------------------------------------------
39 < #
40 < # Table structure for table 'disk'
41 < #
42 <
43 < CREATE TABLE disk (
44 <   id bigint(20) DEFAULT '0' NOT NULL,
45 <   p tinyint(4) DEFAULT '0' NOT NULL,
46 <   disk_free bigint(20) DEFAULT '0',
47 <   disk_total bigint(20) DEFAULT '0',
48 <   mount varchar(31),
49 <   label varchar(31),
50 <   KEY id (id)
51 < );
52 <
53 < #
54 < # Dumping data for table 'disk'
55 < #
56 <
57 <
58 < # --------------------------------------------------------
59 < #
60 < # Table structure for table 'packet'
61 < #
62 <
63 < CREATE TABLE packet (
22 > # Create the table.
23 > CREATE TABLE ipacket (
24     id bigint(20) DEFAULT '0' NOT NULL auto_increment,
25     ip varchar(15) NOT NULL,
26 <   seq_no bigint(20) DEFAULT '0' NOT NULL,
27 <   date bigint(20) DEFAULT '0' NOT NULL,
28 <   server_data bigint(20) DEFAULT '0' NOT NULL,
29 <   machine_name varchar(31) NOT NULL,
70 <   mac_address varchar(31),
71 <   os_name varchar(63),
72 <   os_version varchar(31),
73 <   load1 float(10,2),
74 <   load2 float(10,2),
75 <   load3 float(10,2),
76 <   mem_free bigint(20),
77 <   mem_total bigint(20),
78 <   swap_free bigint(20),
79 <   swap_total bigint(20),
80 <   users varchar(255),
81 <   full_xml text,
26 >   machine_name varchar(32) NOT NULL,
27 >   sent_date bigint(20) DEFAULT '0' NOT NULL,
28 >   receipt_date bigint(20) DEFAULT '0' NOT NULL,
29 >   xml mediumtext NOT NULL,
30     PRIMARY KEY (id),
31     KEY id (id),
32     UNIQUE id_2 (id)
33   );
86
87 #
88 # Dumping data for table 'packet'
89 #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines