IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 30, 2014, 11:43:09 AM (12 years ago)
Author:
heather
Message:

working detectionbatch, needs lot of work on stack

File:
1 edited

Legend:

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

    r36699 r36706  
    5353SET character_set_client = @saved_cs_client;
    5454
    55 --
    56 -- Table structure for table `box`
    57 --
    58 
    59 DROP TABLE IF EXISTS `box`;
    60 SET @saved_cs_client     = @@character_set_client;
    61 SET character_set_client = utf8;
    62 CREATE TABLE `box` (
    63   `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
    64   `id` bigint(20) unsigned NOT NULL auto_increment,
    65   `skychunk` varchar(30) default NULL,
    66   `ra_center` float default NULL,
    67   `dec_center` float default NULL,
    68   `box_side` float default NULL,
    69   `ingested` varchar(64) default 'none',
    70   PRIMARY KEY  (`id`),
    71   KEY `fk_skychunk` (`skychunk`),
    72   CONSTRAINT `fk_skychunk` FOREIGN KEY (`skychunk`) REFERENCES `skychunk` (`name`) ON DELETE CASCADE
    73 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
    74 SET character_set_client = @saved_cs_client;
    7555
    7656--
     
    142122
    143123--
     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--
    144145-- Table structure for table `detection`
    145146--
     
    169170  `filter` varchar(1) default NULL,
    170171  KEY `batch_id` (`batch_id`),
    171   CONSTRAINT `detection_ibfk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
     172  CONSTRAINT `forcedwarpd_ibfk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
    172173) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    173174SET character_set_client = @saved_cs_client;
     
    198199  `region` varchar(50) default NULL,
    199200  KEY `batch_id` (`batch_id`),
    200   CONSTRAINT `object_fk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
     201  CONSTRAINT `diffobject_fk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
    201202) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    202203SET character_set_client = @saved_cs_client;
     
    247248  `diff_type` varchar(20) default NULL,
    248249  KEY `batch_id` (`batch_id`),
    249   CONSTRAINT `stack_ibfk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
     250  CONSTRAINT `diff_ibfk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
    250251) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    251252SET character_set_client = @saved_cs_client;
Note: See TracChangeset for help on using the changeset viewer.