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.5 by pjm2, Tue Dec 5 10:51:07 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.  This includes
5 < # test tables which (unsuprisingly) are for testing!
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   # $Author$
11   # $Id$
9
12   #
11 # This reflects our revised design for the structure
12 # of the database.
13 #
14
13   # Host: localhost Database : co600_10_db
16
17 # --------------------------------------------------------
14   #
19 # Table structure for table 'packet'
15   #
16 <
22 < CREATE TABLE packet (
23 <   id bigint(20) DEFAULT '0' NOT NULL auto_increment,
24 <   ip varchar(15) NOT NULL,
25 <   machine_name varchar(31) NOT NULL,
26 <   seq_no bigint(20) DEFAULT '0' NOT NULL,
27 <   sent_date bigint(20) DEFAULT '0' NOT NULL,
28 <   receipt_date bigint(20) DEFAULT '0' NOT NULL,
29 <   PRIMARY KEY (id),
30 <   KEY id (id),
31 <   UNIQUE id_2 (id)
32 < );
33 <
34 <
35 < # --------------------------------------------------------
16 > # Table structure for table 'ipacket'
17   #
37 # Table structure for table 'packet_test'
38 #
18  
19 < CREATE TABLE packet_test (
19 > # Drop the table if it already exists.
20 > DROP TABLE IF EXISTS ipacket;
21 >
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 <   machine_name varchar(31) NOT NULL,
44 <   seq_no bigint(20) DEFAULT '0' NOT NULL,
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   );
51
52
53 # --------------------------------------------------------
54 #
55 # Table structure for table 'parameter'
56 #
57
58 CREATE TABLE parameter (
59   id bigint(20) DEFAULT '0' NOT NULL auto_increment,
60   packet_id bigint(20) DEFAULT '0' NOT NULL,
61   name varchar(63) NOT NULL,
62   value varchar(63) NOT NULL,
63   PRIMARY KEY (id),
64   KEY id (id),
65   UNIQUE id_2 (id)
66 );
67
68
69 # --------------------------------------------------------
70 #
71 # Table structure for table 'parameter_test'
72 #
73
74 CREATE TABLE parameter_test (
75   id bigint(20) DEFAULT '0' NOT NULL auto_increment,
76   packet_id bigint(20) DEFAULT '0' NOT NULL,
77   name varchar(63) NOT NULL,
78   value varchar(63) NOT NULL,
79   PRIMARY KEY (id),
80   KEY id (id),
81   UNIQUE id_2 (id)
82 );
83
84 # end!

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines