/[PAMELA software]/YodaProfiler/docs/PAMELAProductionDB.sql
ViewVC logotype

Annotation of /YodaProfiler/docs/PAMELAProductionDB.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.22 - (hide annotations) (download)
Fri Oct 12 12:53:20 2007 UTC (17 years, 1 month ago) by mocchiut
Branch: MAIN
Changes since 1.21: +3 -0 lines
New Resurs time zero added to GL_RESURS_OFFSET table

1 mocchiut 1.1 DROP DATABASE IF EXISTS dbname;
2    
3     CREATE DATABASE dbname;
4    
5     USE dbname;
6    
7 mocchiut 1.6 SET time_zone='+0:00';
8    
9 mocchiut 1.3 CREATE TABLE `_RUNID_GEN` (
10     `ID` int(10) unsigned NOT NULL auto_increment,
11     PRIMARY KEY (`ID`)
12     ) ENGINE=InnoDB;
13    
14 mocchiut 1.1 CREATE TABLE `GL_RAW` (
15     `ID` int(10) unsigned NOT NULL auto_increment,
16     `PATH` varchar(255) NOT NULL default '',
17     `NAME` varchar(255) NOT NULL default '',
18     `BOOT_NUMBER` smallint(5) unsigned default NULL,
19     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
20     PRIMARY KEY (`ID`),
21     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
22     KEY `PATH_index` (`PATH`)
23     ) ENGINE=InnoDB;
24    
25 mocchiut 1.12 INSERT INTO GL_RAW VALUES(0,'$PAM_L2','level2 files',NULL,NULL);
26 mocchiut 1.7
27 mocchiut 1.1 CREATE TABLE `GL_ROOT` (
28     `ID` int(10) unsigned NOT NULL auto_increment,
29     `ID_RAW` int(10) unsigned NOT NULL default '0',
30     `ID_TIMESYNC` int(10) unsigned NOT NULL default '0',
31     `PATH` varchar(255) NOT NULL default '',
32     `NAME` varchar(255) NOT NULL default '',
33     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
34     PRIMARY KEY (`ID`),
35     KEY `ID_RAW_index` (`ID_RAW`),
36     KEY `PATH_index` (`PATH`),
37     CONSTRAINT `ROOT_fk` FOREIGN KEY (`ID_RAW`) REFERENCES `GL_RAW` (`ID`) ON DELETE CASCADE
38     ) ENGINE=InnoDB;
39    
40     CREATE TABLE `GL_RESURS_OFFSET` (
41     `ID` int(10) unsigned NOT NULL auto_increment,
42 mocchiut 1.3 `FROM_ORBIT` int(10) unsigned NOT NULL default '0',
43     `SPECIAL_FILE` varchar(255) NOT NULL default '',
44 mocchiut 1.1 `OFFSET_DATE` timestamp default '0000-00-00 00:00:00',
45     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
46     PRIMARY KEY (`ID`)
47     ) ENGINE=InnoDB;
48    
49 mocchiut 1.3 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','','2006-06-14 21:00:00',NULL);
50     INSERT INTO GL_RESURS_OFFSET VALUES(0,'1619','','2006-09-28 21:00:00',NULL);
51 mocchiut 1.9 INSERT INTO GL_RESURS_OFFSET VALUES(0,'2797','','2006-12-12 21:00:00',NULL);
52 mocchiut 1.10 INSERT INTO GL_RESURS_OFFSET VALUES(0,'3221','','2007-01-08 21:00:00',NULL);
53 mocchiut 1.11 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04584_002_001_cln1.pam','2007-01-08 21:00:00',NULL);
54     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04584_003_001_cln1.pam','2007-01-08 21:00:00',NULL);
55     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04586_002_001_cln1.pam','2007-01-08 21:00:00',NULL);
56     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04586_003_001_cln1.pam','2007-01-08 21:00:00',NULL);
57     INSERT INTO GL_RESURS_OFFSET VALUES(0,'4576','','2007-04-08 21:00:00',NULL);
58 mocchiut 1.18 INSERT INTO GL_RESURS_OFFSET VALUES(0,'5960','','2007-07-08 21:00:00',NULL);
59 mocchiut 1.22 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','07408_003_001_cln1.pam','2007-07-08 21:00:00',NULL);
60     INSERT INTO GL_RESURS_OFFSET VALUES(0,'7382','','2007-10-08 21:00:00',NULL);
61    
62 mocchiut 1.1
63     CREATE TABLE `GL_TIMESYNC` (
64     `ID` int(10) unsigned NOT NULL auto_increment,
65     `ID_RAW` int(10) unsigned NOT NULL default '0',
66     `OBT0` int(10) unsigned NOT NULL default '0',
67     `TIMESYNC` int(10) unsigned NOT NULL default '0',
68     `TYPE` smallint(5) unsigned NOT NULL default '0',
69     PRIMARY KEY (`ID`),
70     KEY `ID_RAW_index` (`ID_RAW`),
71     KEY `TYPE_index` (`TYPE`),
72     CONSTRAINT `TIME_RAW_fk` FOREIGN KEY (`ID_RAW`) REFERENCES `GL_RAW` (`ID`) ON DELETE CASCADE
73     ) ENGINE=InnoDB;
74    
75     CREATE TABLE `GL_PARAM` (
76     `ID` int(10) unsigned NOT NULL auto_increment,
77     `PATH` varchar(255) NOT NULL default '',
78     `NAME` varchar(255) NOT NULL default '',
79     `FROM_TIME` int(10) unsigned NOT NULL default '0',
80     `TO_TIME` int(10) unsigned NOT NULL default '0',
81 mocchiut 1.2 `TYPE` smallint(5) unsigned NOT NULL default '0',
82 mocchiut 1.1 `DESCR` varchar(255) NOT NULL default '',
83     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
84     PRIMARY KEY (`ID`),
85     KEY `PATH_index` (`PATH`),
86     KEY `NAME_index` (`NAME`),
87     KEY `TYPE_index` (`TYPE`),
88     KEY `DESCR_index` (`DESCR`)
89     ) ENGINE=InnoDB;
90    
91 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","field_param-0/",0,0,1,"field",NULL);
92     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mip_param-0/",0,0,2,"trk mip",NULL);
93     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","charge_param-1/",0,0,3,"trk charge",NULL);
94 pam-fi 1.19 insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","eta_param-2/",0,0,4,"trk pfa",NULL);
95     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","align_param-Q.A/",0,0,5,"trk alignment",NULL);
96 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-1/",0,0,6,"trk mask",NULL);
97     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","default_calib/",0,0,7,"default calibration",NULL);
98     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIP-dws2000.dat",1,1,101,"Calorimeter ADC to MIP from flight data dw serie 2000",NULL);
99 mocchiut 1.14 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIP.dat",1,1,101,"Calorimeter ADC to MIP from ground data",NULL);
100     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIPfc.dat",2,4294967295,101,"Calorimeter ADC to MIP from flight, relativistic particles",NULL);
101 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign.dat",1,1,102,"Calorimeter alignement",NULL);
102 mocchiut 1.13 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flight.dat",1,1,102,"Calorimeter alignement with flight data",NULL);
103     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flightEMS.dat",2,4294967295,102,"Calorimeter alignement with flight data EM showers",NULL);
104 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloBadMask.dat",0,0,103,"Calorimeter bad strip offline mask",NULL);
105     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloDefaultCalib.root",0,0,104,"Calorimeter default calibration",NULL);
106 mocchiut 1.20 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_a.rz",1,1153660000,201," 0 - 07-23 - A A standard",NULL);
107     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_b.rz",1153660001,1154375000,201," 07-23 - 07-31 HV problems B B july",NULL);
108     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_c.rz",1154375001,1155850000,201," 07-31 - 08-17 - C C standard",NULL);
109     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_d.rz",1155850001,1156280000,201," 08-17 - 08-22 HV problems D D august",NULL);
110     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_e.rz",1156280001,1165400000,201," 08-22 - 12-06 - E E standard",NULL);
111     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_f.rz",1165400001,1168490000,201," 12-06 - 01-11 Decmber Tracker off/on F F standard",NULL);
112     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_g.rz",1168490001,1168940000,201," 01-11 - 01-16 HV problems G G january",NULL);
113 mocchiut 1.21 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_g1.rz",1168940001,1169580000,201," 01-16 - 01-23 HV problems conn. F&M G1 G1 standard",NULL);
114     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_h.rz",1169580001,1170200000,201," 01-23 - 01-30 - H H standard",NULL);
115 mocchiut 1.20 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_i.rz",1170200001,1171000000,201," 01-30 - 02-09 30.1. Threshold changed I I standard",NULL);
116     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_j.rz",1171000001,1174665000,201," 02-09 - 03-23 09.2. Threshold changed J J standard",NULL);
117     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_k.rz",1174665001,1175000000,201," 03-23 - 03-27 HV problems K K standard",NULL);
118     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_l.rz",1175000001,1176120000,201," 03-27 - 04-09 - L L standard",NULL);
119     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_m.rz",1176120001,1176800000,201," 04-09 - 04-17 HV problems M M standard",NULL);
120     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_n.rz",1176800001,4294967295,201," > 04-17 - N N standard",NULL);
121 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05.dat",0,0,301,"igrf 2005",NULL);
122     insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05s.dat",0,0,302,"igrf 2010",NULL);
123    
124 mocchiut 1.1 CREATE TABLE `GL_TLE` (
125     `ID` int(10) NOT NULL auto_increment,
126     `TLE1` varchar(255) NOT NULL default '',
127     `TLE2` varchar(255) NOT NULL default '',
128     `TLE3` varchar(255) NOT NULL default '',
129 mocchiut 1.2 `FROM_TIME` datetime NOT NULL default '0000-00-00 00:00:00',
130 mocchiut 1.1 `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
131     PRIMARY KEY (`ID`)
132     ) ENGINE=InnoDB;
133    
134     CREATE TABLE `GL_RUN` (
135     `ID` int(10) unsigned NOT NULL auto_increment,
136     `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
137     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
138     `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
139     `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
140     `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
141     `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
142     `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
143     `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
144     `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
145     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
146     `EV_FROM` int(10) unsigned NOT NULL default '0',
147     `EV_TO` int(10) unsigned NOT NULL default '0',
148     `NEVENTS` int(10) unsigned NOT NULL default '0',
149     `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
150     `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
151     `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
152     `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
153     `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
154     `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
155     `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
156     `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
157     `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
158     `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',
159     `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
160     `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
161     `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
162     `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
163     `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
164     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
165     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
166     PRIMARY KEY (`ID`),
167     KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`),
168     KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`),
169     KEY `ID_ROOT_L2_index` (`ID_ROOT_L2`),
170     KEY `COMPILATIONTS_index` (`COMPILATIONTIMESTAMP`),
171     KEY `VALID_index` (`VALIDATION`),
172     KEY `TRKCALIB_index` (`TRK_CALIB_USED`),
173     KEY `CALDSPMASK_index` (`CAL_DSP_MASK`),
174     KEY `EFF_WS_index` (`EFF_WRK_SCHEDULE`),
175     KEY `FAV_WS_index` (`FAV_WRK_SCHEDULE`),
176     KEY `RM_ACQ_AFTER_CALIB_index` (`RM_ACQ_AFTER_CALIB`),
177     KEY `RM_ACQ_SETTING_MODE_index` (`RM_ACQ_SETTING_MODE`),
178     KEY `ACQ_VAR_INFO_index` (`ACQ_VAR_INFO`),
179     KEY `TRG_MODE_A_index` (`PRH_VAR_TRG_MODE_A`),
180     KEY `TRG_MODE_B_index` (`PRH_VAR_TRG_MODE_B`),
181     KEY `NEVENTS_index` (`NEVENTS`),
182     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
183     KEY `ID_RUN_fk_constraint` (`ID_ROOT_L0`),
184 mocchiut 1.5 KEY `ID_RUN_L2_fk_constraint` (`ID_ROOT_L2`)
185 mocchiut 1.1 ) ENGINE=InnoDB;
186    
187     CREATE TABLE `GL_RUN_FRAGMENTS` (
188     `ID` int(10) unsigned NOT NULL auto_increment,
189     `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
190     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
191     `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
192     `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
193     `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
194     `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
195     `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
196     `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
197     `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
198     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
199     `EV_FROM` int(10) unsigned NOT NULL default '0',
200     `EV_TO` int(10) unsigned NOT NULL default '0',
201     `NEVENTS` int(10) unsigned NOT NULL default '0',
202     `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
203     `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
204     `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
205     `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
206     `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
207     `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
208     `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
209     `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
210     `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
211     `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',
212     `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
213     `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
214     `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
215     `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
216     `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
217     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
218     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
219     PRIMARY KEY (`ID`),
220     KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`),
221     KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`),
222     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
223     KEY `TRKCALIB_index` (`TRK_CALIB_USED`),
224 mocchiut 1.5 KEY `NID_RUN_fk_constraint` (`ID_ROOT_L0`)
225 mocchiut 1.1 ) ENGINE=InnoDB;
226    
227 mocchiut 1.4 CREATE TABLE `GL_RUN_TRASH` (
228 mocchiut 1.5 `ID_TRASH` int(10) unsigned NOT NULL auto_increment,
229     `ID` int(10) unsigned NOT NULL default '0',
230 mocchiut 1.4 `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
231     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
232     `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
233     `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
234     `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
235     `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
236     `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
237     `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
238     `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
239     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
240     `EV_FROM` int(10) unsigned NOT NULL default '0',
241     `EV_TO` int(10) unsigned NOT NULL default '0',
242     `NEVENTS` int(10) unsigned NOT NULL default '0',
243     `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
244     `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
245     `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
246     `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
247     `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
248     `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
249     `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
250     `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
251     `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
252     `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',
253     `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
254     `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
255     `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
256     `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
257     `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
258     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
259     `FILENAMEL0` varchar(255) NOT NULL default '',
260     `FILENAMEL2` varchar(255) NOT NULL default '',
261     `BELONGED_TO` varchar(255) NOT NULL default '',
262     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
263 mocchiut 1.5 PRIMARY KEY (`ID_TRASH`),
264 mocchiut 1.4 KEY `TID_RUN_FRAG_index` (`ID_RUN_FRAG`),
265     KEY `TID_ROOT_L0_index` (`ID_ROOT_L0`),
266     KEY `TBOOTNUMBER_index` (`BOOT_NUMBER`),
267     KEY `TTRKCALIB_index` (`TRK_CALIB_USED`),
268     KEY `TFNAME0_index` (`FILENAMEL0`),
269     KEY `TFNAME2_index` (`FILENAMEL2`),
270     KEY `TBELONG_index` (`BELONGED_TO`)
271     ) ENGINE=InnoDB;
272    
273 mocchiut 1.1 CREATE TABLE `GL_CALO_CALIB` (
274     `ID` int(10) unsigned NOT NULL auto_increment,
275     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
276     `EV_ROOT` int(10) unsigned NOT NULL default '0',
277     `FROM_TIME` int(10) unsigned NOT NULL default '0',
278     `TO_TIME` int(10) unsigned NOT NULL default '0',
279     `SECTION` tinyint(3) unsigned NOT NULL default '0',
280     `OBT` int(10) unsigned NOT NULL default '0',
281     `PKT` int(10) unsigned NOT NULL default '0',
282     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
283     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
284     PRIMARY KEY (`ID`),
285     KEY `SECTION_index` (`SECTION`),
286     KEY `EV_ROOT_index` (`EV_ROOT`),
287     KEY `ID_ROOT_index` (`ID_ROOT_L0`),
288     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
289 mocchiut 1.5 KEY `VALID1_index` (`VALIDATION`)
290 mocchiut 1.1 ) ENGINE=InnoDB;
291    
292     CREATE TABLE `GL_TRK_CALIB` (
293     `ID` int(10) unsigned NOT NULL auto_increment,
294     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
295     `EV_ROOT_CALIBTRK1` int(10) unsigned default NULL,
296     `EV_ROOT_CALIBTRK2` int(10) unsigned default NULL,
297     `FROM_TIME` int(10) unsigned NOT NULL default '0',
298     `TO_TIME` int(10) unsigned NOT NULL default '0',
299     `OBT1` int(10) unsigned NOT NULL default '0',
300     `PKT1` int(10) unsigned NOT NULL default '0',
301     `OBT2` int(10) unsigned NOT NULL default '0',
302     `PKT2` int(10) unsigned NOT NULL default '0',
303     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
304     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
305     PRIMARY KEY (`ID`),
306     KEY `ID_ROOT_index` (`ID_ROOT_L0`),
307     KEY `EV_ROOT_CALIBTRK1index` (`EV_ROOT_CALIBTRK1`),
308     KEY `EV_ROOT_CALIBTRK2index` (`EV_ROOT_CALIBTRK2`),
309     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
310 mocchiut 1.5 KEY `VALID2_index` (`VALIDATION`)
311 mocchiut 1.1 ) ENGINE=InnoDB;
312    
313     CREATE TABLE `GL_S4_CALIB` (
314     `ID` int(10) unsigned NOT NULL auto_increment,
315     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
316     `EV_ROOT` int(10) unsigned NOT NULL default '0',
317     `FROM_TIME` int(10) unsigned NOT NULL default '0',
318     `TO_TIME` int(10) unsigned NOT NULL default '0',
319     `OBT` int(10) unsigned NOT NULL default '0',
320     `PKT` int(10) unsigned NOT NULL default '0',
321     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
322     PRIMARY KEY (`ID`),
323     KEY `ID_ROOT_index` (`ID_ROOT_L0`),
324 mocchiut 1.5 KEY `BOOTNUMBER_index` (`BOOT_NUMBER`)
325 mocchiut 1.1 ) ENGINE=InnoDB;
326    
327    

  ViewVC Help
Powered by ViewVC 1.1.23