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