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

Annotation of /YodaProfiler/docs/PAMELAProductionDB.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (hide annotations) (download)
Mon Sep 3 08:49:19 2007 UTC (17 years, 3 months ago) by mocchiut
Branch: MAIN
Changes since 1.19: +14 -7 lines
New ToF calibrations added, better DB check implemented

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.1
60     CREATE TABLE `GL_TIMESYNC` (
61     `ID` int(10) unsigned NOT NULL auto_increment,
62     `ID_RAW` int(10) unsigned NOT NULL default '0',
63     `OBT0` int(10) unsigned NOT NULL default '0',
64     `TIMESYNC` int(10) unsigned NOT NULL default '0',
65     `TYPE` smallint(5) unsigned NOT NULL default '0',
66     PRIMARY KEY (`ID`),
67     KEY `ID_RAW_index` (`ID_RAW`),
68     KEY `TYPE_index` (`TYPE`),
69     CONSTRAINT `TIME_RAW_fk` FOREIGN KEY (`ID_RAW`) REFERENCES `GL_RAW` (`ID`) ON DELETE CASCADE
70     ) ENGINE=InnoDB;
71    
72     CREATE TABLE `GL_PARAM` (
73     `ID` int(10) unsigned NOT NULL auto_increment,
74     `PATH` varchar(255) NOT NULL default '',
75     `NAME` varchar(255) NOT NULL default '',
76     `FROM_TIME` int(10) unsigned NOT NULL default '0',
77     `TO_TIME` int(10) unsigned NOT NULL default '0',
78 mocchiut 1.2 `TYPE` smallint(5) unsigned NOT NULL default '0',
79 mocchiut 1.1 `DESCR` varchar(255) NOT NULL default '',
80     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
81     PRIMARY KEY (`ID`),
82     KEY `PATH_index` (`PATH`),
83     KEY `NAME_index` (`NAME`),
84     KEY `TYPE_index` (`TYPE`),
85     KEY `DESCR_index` (`DESCR`)
86     ) ENGINE=InnoDB;
87    
88 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","field_param-0/",0,0,1,"field",NULL);
89     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mip_param-0/",0,0,2,"trk mip",NULL);
90     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","charge_param-1/",0,0,3,"trk charge",NULL);
91 pam-fi 1.19 insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","eta_param-2/",0,0,4,"trk pfa",NULL);
92     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","align_param-Q.A/",0,0,5,"trk alignment",NULL);
93 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-1/",0,0,6,"trk mask",NULL);
94     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","default_calib/",0,0,7,"default calibration",NULL);
95     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);
96 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);
97     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIPfc.dat",2,4294967295,101,"Calorimeter ADC to MIP from flight, relativistic particles",NULL);
98 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign.dat",1,1,102,"Calorimeter alignement",NULL);
99 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);
100     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flightEMS.dat",2,4294967295,102,"Calorimeter alignement with flight data EM showers",NULL);
101 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloBadMask.dat",0,0,103,"Calorimeter bad strip offline mask",NULL);
102     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloDefaultCalib.root",0,0,104,"Calorimeter default calibration",NULL);
103 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);
104     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);
105     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_c.rz",1154375001,1155850000,201," 07-31 - 08-17 - C C standard",NULL);
106     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);
107     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_e.rz",1156280001,1165400000,201," 08-22 - 12-06 - E E standard",NULL);
108     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);
109     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);
110     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_h.rz",1168940001,1170200000,201," 01-16 - 01-30 - H H standard",NULL);
111     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);
112     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);
113     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);
114     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_l.rz",1175000001,1176120000,201," 03-27 - 04-09 - L L standard",NULL);
115     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);
116     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_n.rz",1176800001,4294967295,201," > 04-17 - N N standard",NULL);
117 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05.dat",0,0,301,"igrf 2005",NULL);
118     insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05s.dat",0,0,302,"igrf 2010",NULL);
119    
120 mocchiut 1.1 CREATE TABLE `GL_TLE` (
121     `ID` int(10) NOT NULL auto_increment,
122     `TLE1` varchar(255) NOT NULL default '',
123     `TLE2` varchar(255) NOT NULL default '',
124     `TLE3` varchar(255) NOT NULL default '',
125 mocchiut 1.2 `FROM_TIME` datetime NOT NULL default '0000-00-00 00:00:00',
126 mocchiut 1.1 `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
127     PRIMARY KEY (`ID`)
128     ) ENGINE=InnoDB;
129    
130     CREATE TABLE `GL_RUN` (
131     `ID` int(10) unsigned NOT NULL auto_increment,
132     `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
133     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
134     `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
135     `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
136     `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
137     `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
138     `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
139     `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
140     `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
141     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
142     `EV_FROM` int(10) unsigned NOT NULL default '0',
143     `EV_TO` int(10) unsigned NOT NULL default '0',
144     `NEVENTS` int(10) unsigned NOT NULL default '0',
145     `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
146     `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
147     `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
148     `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
149     `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
150     `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
151     `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
152     `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
153     `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
154     `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',
155     `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
156     `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
157     `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
158     `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
159     `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
160     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
161     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
162     PRIMARY KEY (`ID`),
163     KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`),
164     KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`),
165     KEY `ID_ROOT_L2_index` (`ID_ROOT_L2`),
166     KEY `COMPILATIONTS_index` (`COMPILATIONTIMESTAMP`),
167     KEY `VALID_index` (`VALIDATION`),
168     KEY `TRKCALIB_index` (`TRK_CALIB_USED`),
169     KEY `CALDSPMASK_index` (`CAL_DSP_MASK`),
170     KEY `EFF_WS_index` (`EFF_WRK_SCHEDULE`),
171     KEY `FAV_WS_index` (`FAV_WRK_SCHEDULE`),
172     KEY `RM_ACQ_AFTER_CALIB_index` (`RM_ACQ_AFTER_CALIB`),
173     KEY `RM_ACQ_SETTING_MODE_index` (`RM_ACQ_SETTING_MODE`),
174     KEY `ACQ_VAR_INFO_index` (`ACQ_VAR_INFO`),
175     KEY `TRG_MODE_A_index` (`PRH_VAR_TRG_MODE_A`),
176     KEY `TRG_MODE_B_index` (`PRH_VAR_TRG_MODE_B`),
177     KEY `NEVENTS_index` (`NEVENTS`),
178     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
179     KEY `ID_RUN_fk_constraint` (`ID_ROOT_L0`),
180 mocchiut 1.5 KEY `ID_RUN_L2_fk_constraint` (`ID_ROOT_L2`)
181 mocchiut 1.1 ) ENGINE=InnoDB;
182    
183     CREATE TABLE `GL_RUN_FRAGMENTS` (
184     `ID` int(10) unsigned NOT NULL auto_increment,
185     `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
186     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
187     `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
188     `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
189     `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
190     `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
191     `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
192     `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
193     `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
194     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
195     `EV_FROM` int(10) unsigned NOT NULL default '0',
196     `EV_TO` int(10) unsigned NOT NULL default '0',
197     `NEVENTS` int(10) unsigned NOT NULL default '0',
198     `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
199     `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
200     `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
201     `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
202     `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
203     `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
204     `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
205     `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
206     `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
207     `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',
208     `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
209     `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
210     `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
211     `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
212     `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
213     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
214     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
215     PRIMARY KEY (`ID`),
216     KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`),
217     KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`),
218     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
219     KEY `TRKCALIB_index` (`TRK_CALIB_USED`),
220 mocchiut 1.5 KEY `NID_RUN_fk_constraint` (`ID_ROOT_L0`)
221 mocchiut 1.1 ) ENGINE=InnoDB;
222    
223 mocchiut 1.4 CREATE TABLE `GL_RUN_TRASH` (
224 mocchiut 1.5 `ID_TRASH` int(10) unsigned NOT NULL auto_increment,
225     `ID` int(10) unsigned NOT NULL default '0',
226 mocchiut 1.4 `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
227     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
228     `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
229     `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
230     `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
231     `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
232     `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
233     `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
234     `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
235     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
236     `EV_FROM` int(10) unsigned NOT NULL default '0',
237     `EV_TO` int(10) unsigned NOT NULL default '0',
238     `NEVENTS` int(10) unsigned NOT NULL default '0',
239     `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
240     `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
241     `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
242     `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
243     `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
244     `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
245     `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
246     `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
247     `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
248     `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',
249     `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
250     `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
251     `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
252     `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
253     `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
254     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
255     `FILENAMEL0` varchar(255) NOT NULL default '',
256     `FILENAMEL2` varchar(255) NOT NULL default '',
257     `BELONGED_TO` varchar(255) NOT NULL default '',
258     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
259 mocchiut 1.5 PRIMARY KEY (`ID_TRASH`),
260 mocchiut 1.4 KEY `TID_RUN_FRAG_index` (`ID_RUN_FRAG`),
261     KEY `TID_ROOT_L0_index` (`ID_ROOT_L0`),
262     KEY `TBOOTNUMBER_index` (`BOOT_NUMBER`),
263     KEY `TTRKCALIB_index` (`TRK_CALIB_USED`),
264     KEY `TFNAME0_index` (`FILENAMEL0`),
265     KEY `TFNAME2_index` (`FILENAMEL2`),
266     KEY `TBELONG_index` (`BELONGED_TO`)
267     ) ENGINE=InnoDB;
268    
269 mocchiut 1.1 CREATE TABLE `GL_CALO_CALIB` (
270     `ID` int(10) unsigned NOT NULL auto_increment,
271     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
272     `EV_ROOT` int(10) unsigned NOT NULL default '0',
273     `FROM_TIME` int(10) unsigned NOT NULL default '0',
274     `TO_TIME` int(10) unsigned NOT NULL default '0',
275     `SECTION` tinyint(3) unsigned NOT NULL default '0',
276     `OBT` int(10) unsigned NOT NULL default '0',
277     `PKT` int(10) unsigned NOT NULL default '0',
278     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
279     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
280     PRIMARY KEY (`ID`),
281     KEY `SECTION_index` (`SECTION`),
282     KEY `EV_ROOT_index` (`EV_ROOT`),
283     KEY `ID_ROOT_index` (`ID_ROOT_L0`),
284     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
285 mocchiut 1.5 KEY `VALID1_index` (`VALIDATION`)
286 mocchiut 1.1 ) ENGINE=InnoDB;
287    
288     CREATE TABLE `GL_TRK_CALIB` (
289     `ID` int(10) unsigned NOT NULL auto_increment,
290     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
291     `EV_ROOT_CALIBTRK1` int(10) unsigned default NULL,
292     `EV_ROOT_CALIBTRK2` int(10) unsigned default NULL,
293     `FROM_TIME` int(10) unsigned NOT NULL default '0',
294     `TO_TIME` int(10) unsigned NOT NULL default '0',
295     `OBT1` int(10) unsigned NOT NULL default '0',
296     `PKT1` int(10) unsigned NOT NULL default '0',
297     `OBT2` int(10) unsigned NOT NULL default '0',
298     `PKT2` int(10) unsigned NOT NULL default '0',
299     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
300     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
301     PRIMARY KEY (`ID`),
302     KEY `ID_ROOT_index` (`ID_ROOT_L0`),
303     KEY `EV_ROOT_CALIBTRK1index` (`EV_ROOT_CALIBTRK1`),
304     KEY `EV_ROOT_CALIBTRK2index` (`EV_ROOT_CALIBTRK2`),
305     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
306 mocchiut 1.5 KEY `VALID2_index` (`VALIDATION`)
307 mocchiut 1.1 ) ENGINE=InnoDB;
308    
309     CREATE TABLE `GL_S4_CALIB` (
310     `ID` int(10) unsigned NOT NULL auto_increment,
311     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
312     `EV_ROOT` int(10) unsigned NOT NULL default '0',
313     `FROM_TIME` int(10) unsigned NOT NULL default '0',
314     `TO_TIME` int(10) unsigned NOT NULL default '0',
315     `OBT` int(10) unsigned NOT NULL default '0',
316     `PKT` int(10) unsigned NOT NULL default '0',
317     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
318     PRIMARY KEY (`ID`),
319     KEY `ID_ROOT_index` (`ID_ROOT_L0`),
320 mocchiut 1.5 KEY `BOOTNUMBER_index` (`BOOT_NUMBER`)
321 mocchiut 1.1 ) ENGINE=InnoDB;
322    
323    

  ViewVC Help
Powered by ViewVC 1.1.23