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

Diff of /YodaProfiler/docs/PAMELAProductionDB.sql

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mocchiut, Thu Sep 7 08:34:18 2006 UTC revision 1.4 by mocchiut, Tue Oct 24 14:24:21 2006 UTC
# Line 4  CREATE DATABASE dbname; Line 4  CREATE DATABASE dbname;
4    
5  USE dbname;  USE dbname;
6    
7    CREATE TABLE `_RUNID_GEN` (
8      `ID` int(10) unsigned NOT NULL auto_increment,
9      PRIMARY KEY  (`ID`)
10    ) ENGINE=InnoDB;
11    
12  CREATE TABLE `GL_RAW` (  CREATE TABLE `GL_RAW` (
13    `ID` int(10) unsigned NOT NULL auto_increment,    `ID` int(10) unsigned NOT NULL auto_increment,
14    `PATH` varchar(255) NOT NULL default '',    `PATH` varchar(255) NOT NULL default '',
# Line 30  CREATE TABLE `GL_ROOT` ( Line 35  CREATE TABLE `GL_ROOT` (
35    
36  CREATE TABLE `GL_RESURS_OFFSET` (  CREATE TABLE `GL_RESURS_OFFSET` (
37    `ID` int(10) unsigned NOT NULL auto_increment,    `ID` int(10) unsigned NOT NULL auto_increment,
38    `FROM_ID_RAW` int(10) unsigned NOT NULL default '0',    `FROM_ORBIT` int(10) unsigned NOT NULL default '0',
39    `TO_ID_RAW` int(10) unsigned NOT NULL default '0',    `SPECIAL_FILE` varchar(255) NOT NULL default '',
40    `OFFSET_DATE` timestamp default '0000-00-00 00:00:00',    `OFFSET_DATE` timestamp default '0000-00-00 00:00:00',
41    `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,    `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
42    PRIMARY KEY  (`ID`)    PRIMARY KEY  (`ID`)
43  ) ENGINE=InnoDB;  ) ENGINE=InnoDB;
44    
45  INSERT INTO GL_RESURS_OFFSET VALUES(0,'1','4294967295','2006-06-14 21:00:00',NULL);  INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','','2006-06-14 21:00:00',NULL);
46    INSERT INTO GL_RESURS_OFFSET VALUES(0,'1619','','2006-09-28 21:00:00',NULL);
47    
48  CREATE TABLE `GL_TIMESYNC` (  CREATE TABLE `GL_TIMESYNC` (
49    `ID` int(10) unsigned NOT NULL auto_increment,    `ID` int(10) unsigned NOT NULL auto_increment,
# Line 57  CREATE TABLE `GL_PARAM` ( Line 63  CREATE TABLE `GL_PARAM` (
63    `NAME` varchar(255) NOT NULL default '',    `NAME` varchar(255) NOT NULL default '',
64    `FROM_TIME` int(10) unsigned NOT NULL default '0',    `FROM_TIME` int(10) unsigned NOT NULL default '0',
65    `TO_TIME` int(10) unsigned NOT NULL default '0',    `TO_TIME` int(10) unsigned NOT NULL default '0',
66    `TYPE` smallint(5) unsigned NOT NULL default '',    `TYPE` smallint(5) unsigned NOT NULL default '0',
67    `DESCR` varchar(255) NOT NULL default '',    `DESCR` varchar(255) NOT NULL default '',
68    `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,    `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
69    PRIMARY KEY  (`ID`),    PRIMARY KEY  (`ID`),
# Line 72  CREATE TABLE `GL_TLE` ( Line 78  CREATE TABLE `GL_TLE` (
78    `TLE1` varchar(255) NOT NULL default '',    `TLE1` varchar(255) NOT NULL default '',
79    `TLE2` varchar(255) NOT NULL default '',    `TLE2` varchar(255) NOT NULL default '',
80    `TLE3` varchar(255) NOT NULL default '',    `TLE3` varchar(255) NOT NULL default '',
81    `FROM_TIME` int(10) unsigned NOT NULL default '0',    `FROM_TIME` datetime NOT NULL default '0000-00-00 00:00:00',
   `TO_TIME` int(10) unsigned NOT NULL default '0',  
82    `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,    `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
   `NOTE` varchar(255) NOT NULL default '',  
83    PRIMARY KEY  (`ID`)    PRIMARY KEY  (`ID`)
84  ) ENGINE=InnoDB;  ) ENGINE=InnoDB;
85    
# Line 174  CREATE TABLE `GL_RUN_FRAGMENTS` ( Line 178  CREATE TABLE `GL_RUN_FRAGMENTS` (
178    CONSTRAINT `NID_RUN_fk_constraint` FOREIGN KEY (`ID_ROOT_L0`) REFERENCES `GL_ROOT` (`ID`) ON DELETE CASCADE    CONSTRAINT `NID_RUN_fk_constraint` FOREIGN KEY (`ID_ROOT_L0`) REFERENCES `GL_ROOT` (`ID`) ON DELETE CASCADE
179  ) ENGINE=InnoDB;  ) ENGINE=InnoDB;
180    
181    CREATE TABLE `GL_RUN_TRASH` (
182      `ID` int(10) unsigned NOT NULL auto_increment,
183      `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
184      `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
185      `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
186      `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
187      `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
188      `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
189      `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
190      `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
191      `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
192      `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
193      `EV_FROM` int(10) unsigned NOT NULL default '0',
194      `EV_TO` int(10) unsigned NOT NULL default '0',
195      `NEVENTS` int(10) unsigned NOT NULL default '0',
196      `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
197      `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
198      `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
199      `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
200      `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
201      `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
202      `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
203      `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
204      `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
205      `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',  
206      `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
207      `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
208      `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
209      `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
210      `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
211      `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
212      `FILENAMEL0` varchar(255) NOT NULL default '',
213      `FILENAMEL2` varchar(255) NOT NULL default '',
214      `BELONGED_TO` varchar(255) NOT NULL default '',
215      `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
216      PRIMARY KEY  (`ID`),
217      KEY `TID_RUN_FRAG_index` (`ID_RUN_FRAG`),
218      KEY `TID_ROOT_L0_index` (`ID_ROOT_L0`),
219      KEY `TBOOTNUMBER_index` (`BOOT_NUMBER`),
220      KEY `TTRKCALIB_index` (`TRK_CALIB_USED`),
221      KEY `TFNAME0_index` (`FILENAMEL0`),
222      KEY `TFNAME2_index` (`FILENAMEL2`),
223      KEY `TBELONG_index` (`BELONGED_TO`)
224    ) ENGINE=InnoDB;
225    
226  CREATE TABLE `GL_CALO_CALIB` (  CREATE TABLE `GL_CALO_CALIB` (
227    `ID` int(10) unsigned NOT NULL auto_increment,    `ID` int(10) unsigned NOT NULL auto_increment,
228    `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',    `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23