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