Changeset 36706 for trunk/ippToPsps/config/ippToPspsDbSchema.sql
- Timestamp:
- Apr 30, 2014, 11:43:09 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/config/ippToPspsDbSchema.sql (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/config/ippToPspsDbSchema.sql
r36699 r36706 53 53 SET character_set_client = @saved_cs_client; 54 54 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 CASCADE73 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;74 SET character_set_client = @saved_cs_client;75 55 76 56 -- … … 142 122 143 123 -- 124 -- Table structure for table `box` needs to be after skychunk or get err:150 125 -- 126 127 DROP TABLE IF EXISTS `box`; 128 SET @saved_cs_client = @@character_set_client; 129 SET character_set_client = utf8; 130 CREATE 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; 142 SET character_set_client = @saved_cs_client; 143 144 -- 144 145 -- Table structure for table `detection` 145 146 -- … … 169 170 `filter` varchar(1) default NULL, 170 171 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`) 172 173 ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 173 174 SET character_set_client = @saved_cs_client; … … 198 199 `region` varchar(50) default NULL, 199 200 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`) 201 202 ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 202 203 SET character_set_client = @saved_cs_client; … … 247 248 `diff_type` varchar(20) default NULL, 248 249 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`) 250 251 ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 251 252 SET character_set_client = @saved_cs_client;
Note:
See TracChangeset
for help on using the changeset viewer.
