IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 7, 2014, 5:36:39 AM (12 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140423/ippToPsps/config/ippToPspsDbSchema.sql

    r36201 r36826  
    4545  `stage_id` bigint(20) default NULL,
    4646  `total_detections` bigint(20) default NULL,
     47  `skychunk` varchar(400) default NULL,
     48  `datastore_file` varchar(400) default NULL,
    4749  `comment` varchar(400) default NULL,
    4850  `purged` tinyint(4) NOT NULL default '0',
     
    5153SET character_set_client = @saved_cs_client;
    5254
    53 --
    54 -- Table structure for table `box`
    55 --
    56 
    57 DROP TABLE IF EXISTS `box`;
    58 SET @saved_cs_client     = @@character_set_client;
    59 SET character_set_client = utf8;
    60 CREATE TABLE `box` (
    61   `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
    62   `id` bigint(20) unsigned NOT NULL auto_increment,
    63   `skychunk` varchar(30) default NULL,
    64   `ra_center` float default NULL,
    65   `dec_center` float default NULL,
    66   `box_side` float default NULL,
    67   `ingested` varchar(64) default 'none',
    68   PRIMARY KEY  (`id`),
    69   KEY `fk_skychunk` (`skychunk`),
    70   CONSTRAINT `fk_skychunk` FOREIGN KEY (`skychunk`) REFERENCES `skychunk` (`name`) ON DELETE CASCADE
    71 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
    72 SET character_set_client = @saved_cs_client;
    7355
    7456--
     
    125107  `queue_ST` tinyint(1) default '0',
    126108  `queue_OB` tinyint(1) default '0',
     109  `queue_DF` tinyint(1) default '0',
     110  `queue_DO` tinyint(1) default '0',
     111  `queue_FW` tinyint(1) default '0',
     112  `queue_FO` tinyint(1) default '0',
    127113  `active` tinyint(1) default '1',
    128114  `parallel` tinyint(1) default '0',
     
    136122
    137123--
     124-- Table structure for table `box` needs to be after skychunk or get err:150
     125--
     126
     127DROP TABLE IF EXISTS `box`;
     128SET @saved_cs_client     = @@character_set_client;
     129SET character_set_client = utf8;
     130CREATE TABLE `box` (
     131  `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
     132  `id` bigint(20) unsigned NOT NULL auto_increment,
     133  `skychunk` varchar(30) default NULL,
     134  `ra_center` float default NULL,
     135  `dec_center` float default NULL,
     136  `box_side` float default NULL,
     137  `ingested` varchar(64) default 'none',
     138  PRIMARY KEY  (`id`),
     139  KEY `fk_skychunk` (`skychunk`),
     140  CONSTRAINT `fk_skychunk` FOREIGN KEY (`skychunk`) REFERENCES `skychunk` (`name`) ON DELETE CASCADE
     141) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
     142SET character_set_client = @saved_cs_client;
     143
     144--
    138145-- Table structure for table `detection`
    139146--
     
    152159
    153160--
     161-- Table structure for table `forcedwarp`
     162--
     163
     164DROP TABLE IF EXISTS `forcedwarp`;
     165SET @saved_cs_client     = @@character_set_client;
     166SET character_set_client = utf8;
     167CREATE TABLE `forcedwarp` (
     168  `batch_id` bigint(20) unsigned NOT NULL,
     169  `exp_id` bigint(20) default NULL,
     170  `filter` varchar(1) default NULL,
     171  KEY `batch_id` (`batch_id`),
     172  CONSTRAINT `forcedwarpd_ibfk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
     173) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     174SET character_set_client = @saved_cs_client;
     175
     176--
    154177-- Table structure for table `object`
    155178--
     
    163186  KEY `batch_id` (`batch_id`),
    164187  CONSTRAINT `object_fk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
     188) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     189SET character_set_client = @saved_cs_client;
     190--
     191-- Table structure for table `diffobject`
     192--
     193
     194DROP TABLE IF EXISTS `diffobject`;
     195SET @saved_cs_client     = @@character_set_client;
     196SET character_set_client = utf8;
     197CREATE TABLE `diffobject` (
     198  `batch_id` bigint(20) unsigned NOT NULL,
     199  `region` varchar(50) default NULL,
     200  KEY `batch_id` (`batch_id`),
     201  CONSTRAINT `diffobject_fk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
    165202) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    166203SET character_set_client = @saved_cs_client;
     
    200237
    201238--
     239-- Table structure for table `diff`
     240--
     241
     242DROP TABLE IF EXISTS `diff`;
     243SET @saved_cs_client     = @@character_set_client;
     244SET character_set_client = utf8;
     245CREATE TABLE `diff` (
     246  `batch_id` bigint(20) unsigned NOT NULL,
     247  `filter` varchar(1) default NULL,
     248  `diff_type` varchar(20) default NULL,
     249  KEY `batch_id` (`batch_id`),
     250  CONSTRAINT `diff_ibfk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
     251) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     252SET character_set_client = @saved_cs_client;
     253
     254--
    202255-- Table structure for table `stripe`
    203256--
     
    225278
    226279-- Dump completed on 2012-04-10  6:00:59
     280
     281
     282DROP TABLE IF EXISTS `dvodb`;
     283SET @saved_cs_client     = @@character_set_client;
     284SET character_set_client = utf8;
     285CREATE TABLE `dvodb` (
     286  `dvo_db` varchar(30) default NULL,
     287  `batch_type` varchar(10) default NULL,
     288  `stage_id` bigint(20) unsigned default NULL,
     289  `ra_center` float default NULL,
     290  `dec_center` float default NULL,
     291  `uniq_key` varchar(30) default NULL,
     292  UNIQUE KEY `uniq_key` (`uniq_key`)
     293) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     294SET character_set_client = @saved_cs_client;
     295
     296
Note: See TracChangeset for help on using the changeset viewer.