IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33753


Ignore:
Timestamp:
Apr 10, 2012, 3:49:19 PM (14 years ago)
Author:
rhenders
Message:

added table for object batches; new default for base_path; new fields for queueing OB batches in batch table and 'active' in config table.

File:
1 edited

Legend:

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

    r33593 r33753  
    4545  `purged` tinyint(4) NOT NULL default '0',
    4646  PRIMARY KEY  (`batch_id`)
    47 ) ENGINE=InnoDB AUTO_INCREMENT=326479 DEFAULT CHARSET=latin1;
     47) ENGINE=InnoDB AUTO_INCREMENT=328286 DEFAULT CHARSET=latin1;
    4848SET character_set_client = @saved_cs_client;
    4949
     
    6565  KEY `fk_config` (`config`),
    6666  CONSTRAINT `fk_config` FOREIGN KEY (`config`) REFERENCES `config` (`name`) ON DELETE CASCADE
    67 ) ENGINE=InnoDB AUTO_INCREMENT=25457 DEFAULT CHARSET=latin1;
     67) ENGINE=InnoDB AUTO_INCREMENT=44588 DEFAULT CHARSET=latin1;
    6868SET character_set_client = @saved_cs_client;
    6969
     
    8787  PRIMARY KEY  (`id`),
    8888  UNIQUE KEY `unique_key` (`host`,`pid`)
    89 ) ENGINE=InnoDB AUTO_INCREMENT=961 DEFAULT CHARSET=latin1;
     89) ENGINE=InnoDB AUTO_INCREMENT=1227 DEFAULT CHARSET=latin1;
    9090SET character_set_client = @saved_cs_client;
    9191
     
    110110  `max_dec` double default '90',
    111111  `box_size` double default '4',
    112   `base_path` varchar(1000) default NULL,
     112  `base_path` varchar(1000) default '/data/ipp005.0/ipptopsps/',
    113113  `data_release` smallint(6) default '0',
    114114  `delete_local` tinyint(1) default '0',
     
    120120  `queue_P2` tinyint(1) default '1',
    121121  `queue_ST` tinyint(1) default '0',
     122  `queue_OB` tinyint(1) default '0',
     123  `active` tinyint(1) default '1',
    122124  UNIQUE KEY `name` (`name`)
    123125) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     
    141143
    142144--
     145-- Table structure for table `object`
     146--
     147
     148DROP TABLE IF EXISTS `object`;
     149SET @saved_cs_client     = @@character_set_client;
     150SET character_set_client = utf8;
     151CREATE TABLE `object` (
     152  `batch_id` bigint(20) unsigned NOT NULL,
     153  `region` varchar(50) default NULL,
     154  KEY `batch_id` (`batch_id`),
     155  CONSTRAINT `object_fk_1` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`batch_id`)
     156) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     157SET character_set_client = @saved_cs_client;
     158
     159--
    143160-- Table structure for table `pending`
    144161--
     
    151168  `batch_type` varchar(10) default NULL,
    152169  `stage_id` bigint(20) default NULL,
    153   `ra_bore` float default NULL,
    154   `dec_bore` float default NULL,
    155170  UNIQUE KEY `a_key` (`box_id`,`stage_id`,`batch_type`),
     171  UNIQUE KEY `stage_id_key` (`stage_id`),
    156172  CONSTRAINT `box_key` FOREIGN KEY (`box_id`) REFERENCES `box` (`id`) ON DELETE CASCADE
    157173) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     
    199215/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
    200216
    201 -- Dump completed on 2012-03-22  7:59:34
     217-- Dump completed on 2012-04-10  6:00:59
Note: See TracChangeset for help on using the changeset viewer.