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