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.1 |
|
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 |
mocchiut |
1.2 |
`TYPE` smallint(5) unsigned NOT NULL default '0', |
78 |
mocchiut |
1.1 |
`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 |
mocchiut |
1.12 |
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",2,4294967295,101,"Calorimeter ADC to MIP from ground data",NULL); |
96 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign.dat",1,1,102,"Calorimeter alignement",NULL); |
97 |
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); |
98 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flightEMS.dat",2,4294967295,102,"Calorimeter alignement with flight data EM showers",NULL); |
99 |
mocchiut |
1.12 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloBadMask.dat",0,0,103,"Calorimeter bad strip offline mask",NULL); |
100 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloDefaultCalib.root",0,0,104,"Calorimeter default calibration",NULL); |
101 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib.rz",1,1153699999,201,"tof param from flight data",NULL); |
102 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_001.rz",1153700000,1154400000,201,"tof param from flight data 24th-28th July 2006",NULL); |
103 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib.rz",1154400001,4294967295,201,"tof param from flight data",NULL); |
104 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05.dat",0,0,301,"igrf 2005",NULL); |
105 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05s.dat",0,0,302,"igrf 2010",NULL); |
106 |
|
|
|
107 |
mocchiut |
1.1 |
CREATE TABLE `GL_TLE` ( |
108 |
|
|
`ID` int(10) NOT NULL auto_increment, |
109 |
|
|
`TLE1` varchar(255) NOT NULL default '', |
110 |
|
|
`TLE2` varchar(255) NOT NULL default '', |
111 |
|
|
`TLE3` varchar(255) NOT NULL default '', |
112 |
mocchiut |
1.2 |
`FROM_TIME` datetime NOT NULL default '0000-00-00 00:00:00', |
113 |
mocchiut |
1.1 |
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
114 |
|
|
PRIMARY KEY (`ID`) |
115 |
|
|
) ENGINE=InnoDB; |
116 |
|
|
|
117 |
|
|
CREATE TABLE `GL_RUN` ( |
118 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
119 |
|
|
`ID_RUN_FRAG` int(10) unsigned NOT NULL default '0', |
120 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
121 |
|
|
`ID_ROOT_L2` int(10) unsigned NOT NULL default '0', |
122 |
|
|
`RUNHEADER_TIME` int(10) unsigned NOT NULL default '0', |
123 |
|
|
`RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0', |
124 |
|
|
`RUNHEADER_OBT` int(10) unsigned NOT NULL default '0', |
125 |
|
|
`RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0', |
126 |
|
|
`RUNHEADER_PKT` int(10) unsigned NOT NULL default '0', |
127 |
|
|
`RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0', |
128 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
129 |
|
|
`EV_FROM` int(10) unsigned NOT NULL default '0', |
130 |
|
|
`EV_TO` int(10) unsigned NOT NULL default '0', |
131 |
|
|
`NEVENTS` int(10) unsigned NOT NULL default '0', |
132 |
|
|
`PKT_COUNTER` int(10) unsigned NOT NULL default '0', |
133 |
|
|
`PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0', |
134 |
|
|
`COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0', |
135 |
|
|
`FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
136 |
|
|
`EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
137 |
|
|
`PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0', |
138 |
|
|
`PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0', |
139 |
|
|
`ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0', |
140 |
|
|
`ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0', |
141 |
|
|
`RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0', |
142 |
|
|
`RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0', |
143 |
|
|
`TRK_CALIB_USED` int(10) unsigned NOT NULL default '0', |
144 |
|
|
`CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0', |
145 |
|
|
`LAST_TIMESYNC` int(10) unsigned NOT NULL default '0', |
146 |
|
|
`OBT_TIMESYNC` int(10) unsigned NOT NULL default '0', |
147 |
|
|
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
148 |
|
|
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
149 |
|
|
PRIMARY KEY (`ID`), |
150 |
|
|
KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`), |
151 |
|
|
KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`), |
152 |
|
|
KEY `ID_ROOT_L2_index` (`ID_ROOT_L2`), |
153 |
|
|
KEY `COMPILATIONTS_index` (`COMPILATIONTIMESTAMP`), |
154 |
|
|
KEY `VALID_index` (`VALIDATION`), |
155 |
|
|
KEY `TRKCALIB_index` (`TRK_CALIB_USED`), |
156 |
|
|
KEY `CALDSPMASK_index` (`CAL_DSP_MASK`), |
157 |
|
|
KEY `EFF_WS_index` (`EFF_WRK_SCHEDULE`), |
158 |
|
|
KEY `FAV_WS_index` (`FAV_WRK_SCHEDULE`), |
159 |
|
|
KEY `RM_ACQ_AFTER_CALIB_index` (`RM_ACQ_AFTER_CALIB`), |
160 |
|
|
KEY `RM_ACQ_SETTING_MODE_index` (`RM_ACQ_SETTING_MODE`), |
161 |
|
|
KEY `ACQ_VAR_INFO_index` (`ACQ_VAR_INFO`), |
162 |
|
|
KEY `TRG_MODE_A_index` (`PRH_VAR_TRG_MODE_A`), |
163 |
|
|
KEY `TRG_MODE_B_index` (`PRH_VAR_TRG_MODE_B`), |
164 |
|
|
KEY `NEVENTS_index` (`NEVENTS`), |
165 |
|
|
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
166 |
|
|
KEY `ID_RUN_fk_constraint` (`ID_ROOT_L0`), |
167 |
mocchiut |
1.5 |
KEY `ID_RUN_L2_fk_constraint` (`ID_ROOT_L2`) |
168 |
mocchiut |
1.1 |
) ENGINE=InnoDB; |
169 |
|
|
|
170 |
|
|
CREATE TABLE `GL_RUN_FRAGMENTS` ( |
171 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
172 |
|
|
`ID_RUN_FRAG` int(10) unsigned NOT NULL default '0', |
173 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
174 |
|
|
`ID_ROOT_L2` int(10) unsigned NOT NULL default '0', |
175 |
|
|
`RUNHEADER_TIME` int(10) unsigned NOT NULL default '0', |
176 |
|
|
`RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0', |
177 |
|
|
`RUNHEADER_OBT` int(10) unsigned NOT NULL default '0', |
178 |
|
|
`RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0', |
179 |
|
|
`RUNHEADER_PKT` int(10) unsigned NOT NULL default '0', |
180 |
|
|
`RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0', |
181 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
182 |
|
|
`EV_FROM` int(10) unsigned NOT NULL default '0', |
183 |
|
|
`EV_TO` int(10) unsigned NOT NULL default '0', |
184 |
|
|
`NEVENTS` int(10) unsigned NOT NULL default '0', |
185 |
|
|
`PKT_COUNTER` int(10) unsigned NOT NULL default '0', |
186 |
|
|
`PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0', |
187 |
|
|
`COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0', |
188 |
|
|
`FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
189 |
|
|
`EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
190 |
|
|
`PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0', |
191 |
|
|
`PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0', |
192 |
|
|
`ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0', |
193 |
|
|
`ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0', |
194 |
|
|
`RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0', |
195 |
|
|
`RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0', |
196 |
|
|
`TRK_CALIB_USED` int(10) unsigned NOT NULL default '0', |
197 |
|
|
`CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0', |
198 |
|
|
`LAST_TIMESYNC` int(10) unsigned NOT NULL default '0', |
199 |
|
|
`OBT_TIMESYNC` int(10) unsigned NOT NULL default '0', |
200 |
|
|
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
201 |
|
|
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
202 |
|
|
PRIMARY KEY (`ID`), |
203 |
|
|
KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`), |
204 |
|
|
KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`), |
205 |
|
|
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
206 |
|
|
KEY `TRKCALIB_index` (`TRK_CALIB_USED`), |
207 |
mocchiut |
1.5 |
KEY `NID_RUN_fk_constraint` (`ID_ROOT_L0`) |
208 |
mocchiut |
1.1 |
) ENGINE=InnoDB; |
209 |
|
|
|
210 |
mocchiut |
1.4 |
CREATE TABLE `GL_RUN_TRASH` ( |
211 |
mocchiut |
1.5 |
`ID_TRASH` int(10) unsigned NOT NULL auto_increment, |
212 |
|
|
`ID` int(10) unsigned NOT NULL default '0', |
213 |
mocchiut |
1.4 |
`ID_RUN_FRAG` int(10) unsigned NOT NULL default '0', |
214 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
215 |
|
|
`ID_ROOT_L2` int(10) unsigned NOT NULL default '0', |
216 |
|
|
`RUNHEADER_TIME` int(10) unsigned NOT NULL default '0', |
217 |
|
|
`RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0', |
218 |
|
|
`RUNHEADER_OBT` int(10) unsigned NOT NULL default '0', |
219 |
|
|
`RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0', |
220 |
|
|
`RUNHEADER_PKT` int(10) unsigned NOT NULL default '0', |
221 |
|
|
`RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0', |
222 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
223 |
|
|
`EV_FROM` int(10) unsigned NOT NULL default '0', |
224 |
|
|
`EV_TO` int(10) unsigned NOT NULL default '0', |
225 |
|
|
`NEVENTS` int(10) unsigned NOT NULL default '0', |
226 |
|
|
`PKT_COUNTER` int(10) unsigned NOT NULL default '0', |
227 |
|
|
`PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0', |
228 |
|
|
`COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0', |
229 |
|
|
`FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
230 |
|
|
`EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
231 |
|
|
`PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0', |
232 |
|
|
`PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0', |
233 |
|
|
`ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0', |
234 |
|
|
`ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0', |
235 |
|
|
`RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0', |
236 |
|
|
`RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0', |
237 |
|
|
`TRK_CALIB_USED` int(10) unsigned NOT NULL default '0', |
238 |
|
|
`CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0', |
239 |
|
|
`LAST_TIMESYNC` int(10) unsigned NOT NULL default '0', |
240 |
|
|
`OBT_TIMESYNC` int(10) unsigned NOT NULL default '0', |
241 |
|
|
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
242 |
|
|
`FILENAMEL0` varchar(255) NOT NULL default '', |
243 |
|
|
`FILENAMEL2` varchar(255) NOT NULL default '', |
244 |
|
|
`BELONGED_TO` varchar(255) NOT NULL default '', |
245 |
|
|
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
246 |
mocchiut |
1.5 |
PRIMARY KEY (`ID_TRASH`), |
247 |
mocchiut |
1.4 |
KEY `TID_RUN_FRAG_index` (`ID_RUN_FRAG`), |
248 |
|
|
KEY `TID_ROOT_L0_index` (`ID_ROOT_L0`), |
249 |
|
|
KEY `TBOOTNUMBER_index` (`BOOT_NUMBER`), |
250 |
|
|
KEY `TTRKCALIB_index` (`TRK_CALIB_USED`), |
251 |
|
|
KEY `TFNAME0_index` (`FILENAMEL0`), |
252 |
|
|
KEY `TFNAME2_index` (`FILENAMEL2`), |
253 |
|
|
KEY `TBELONG_index` (`BELONGED_TO`) |
254 |
|
|
) ENGINE=InnoDB; |
255 |
|
|
|
256 |
mocchiut |
1.1 |
CREATE TABLE `GL_CALO_CALIB` ( |
257 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
258 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
259 |
|
|
`EV_ROOT` int(10) unsigned NOT NULL default '0', |
260 |
|
|
`FROM_TIME` int(10) unsigned NOT NULL default '0', |
261 |
|
|
`TO_TIME` int(10) unsigned NOT NULL default '0', |
262 |
|
|
`SECTION` tinyint(3) unsigned NOT NULL default '0', |
263 |
|
|
`OBT` int(10) unsigned NOT NULL default '0', |
264 |
|
|
`PKT` int(10) unsigned NOT NULL default '0', |
265 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
266 |
|
|
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
267 |
|
|
PRIMARY KEY (`ID`), |
268 |
|
|
KEY `SECTION_index` (`SECTION`), |
269 |
|
|
KEY `EV_ROOT_index` (`EV_ROOT`), |
270 |
|
|
KEY `ID_ROOT_index` (`ID_ROOT_L0`), |
271 |
|
|
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
272 |
mocchiut |
1.5 |
KEY `VALID1_index` (`VALIDATION`) |
273 |
mocchiut |
1.1 |
) ENGINE=InnoDB; |
274 |
|
|
|
275 |
|
|
CREATE TABLE `GL_TRK_CALIB` ( |
276 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
277 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
278 |
|
|
`EV_ROOT_CALIBTRK1` int(10) unsigned default NULL, |
279 |
|
|
`EV_ROOT_CALIBTRK2` int(10) unsigned default NULL, |
280 |
|
|
`FROM_TIME` int(10) unsigned NOT NULL default '0', |
281 |
|
|
`TO_TIME` int(10) unsigned NOT NULL default '0', |
282 |
|
|
`OBT1` int(10) unsigned NOT NULL default '0', |
283 |
|
|
`PKT1` int(10) unsigned NOT NULL default '0', |
284 |
|
|
`OBT2` int(10) unsigned NOT NULL default '0', |
285 |
|
|
`PKT2` int(10) unsigned NOT NULL default '0', |
286 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
287 |
|
|
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
288 |
|
|
PRIMARY KEY (`ID`), |
289 |
|
|
KEY `ID_ROOT_index` (`ID_ROOT_L0`), |
290 |
|
|
KEY `EV_ROOT_CALIBTRK1index` (`EV_ROOT_CALIBTRK1`), |
291 |
|
|
KEY `EV_ROOT_CALIBTRK2index` (`EV_ROOT_CALIBTRK2`), |
292 |
|
|
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
293 |
mocchiut |
1.5 |
KEY `VALID2_index` (`VALIDATION`) |
294 |
mocchiut |
1.1 |
) ENGINE=InnoDB; |
295 |
|
|
|
296 |
|
|
CREATE TABLE `GL_S4_CALIB` ( |
297 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
298 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
299 |
|
|
`EV_ROOT` int(10) unsigned NOT NULL default '0', |
300 |
|
|
`FROM_TIME` int(10) unsigned NOT NULL default '0', |
301 |
|
|
`TO_TIME` int(10) unsigned NOT NULL default '0', |
302 |
|
|
`OBT` int(10) unsigned NOT NULL default '0', |
303 |
|
|
`PKT` int(10) unsigned NOT NULL default '0', |
304 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
305 |
|
|
PRIMARY KEY (`ID`), |
306 |
|
|
KEY `ID_ROOT_index` (`ID_ROOT_L0`), |
307 |
mocchiut |
1.5 |
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`) |
308 |
mocchiut |
1.1 |
) ENGINE=InnoDB; |
309 |
|
|
|
310 |
|
|
|