IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 25, 2014, 5:25:22 PM (12 years ago)
Author:
heather
Message:

stuff to get databases in place and make the first schema pv2 init batch!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/config/ippToPspsDbSchema.sql

    r36697 r36699  
    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',
     
    156158
    157159--
     160-- Table structure for table `forcedwarp`
     161--
     162
     163DROP TABLE IF EXISTS `forcedwarp`;
     164SET @saved_cs_client     = @@character_set_client;
     165SET character_set_client = utf8;
     166CREATE TABLE `forcedwarp` (
     167  `batch_id` bigint(20) unsigned NOT NULL,
     168  `exp_id` bigint(20) default NULL,
     169  `filter` varchar(1) default NULL,
     170  KEY `batch_id` (`batch_id`),
     171  CONSTRAINT `detection_ibfk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
     172) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     173SET character_set_client = @saved_cs_client;
     174
     175--
    158176-- Table structure for table `object`
    159177--
     
    163181SET character_set_client = utf8;
    164182CREATE TABLE `object` (
     183  `batch_id` bigint(20) unsigned NOT NULL,
     184  `region` varchar(50) default NULL,
     185  KEY `batch_id` (`batch_id`),
     186  CONSTRAINT `object_fk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
     187) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     188SET character_set_client = @saved_cs_client;
     189--
     190-- Table structure for table `diffobject`
     191--
     192
     193DROP TABLE IF EXISTS `diffobject`;
     194SET @saved_cs_client     = @@character_set_client;
     195SET character_set_client = utf8;
     196CREATE TABLE `diffobject` (
    165197  `batch_id` bigint(20) unsigned NOT NULL,
    166198  `region` varchar(50) default NULL,
     
    204236
    205237--
     238-- Table structure for table `diff`
     239--
     240
     241DROP TABLE IF EXISTS `diff`;
     242SET @saved_cs_client     = @@character_set_client;
     243SET character_set_client = utf8;
     244CREATE TABLE `diff` (
     245  `batch_id` bigint(20) unsigned NOT NULL,
     246  `filter` varchar(1) default NULL,
     247  `diff_type` varchar(20) default NULL,
     248  KEY `batch_id` (`batch_id`),
     249  CONSTRAINT `stack_ibfk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
     250) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     251SET character_set_client = @saved_cs_client;
     252
     253--
    206254-- Table structure for table `stripe`
    207255--
Note: See TracChangeset for help on using the changeset viewer.