Skip to content

Commit

Permalink
Update database sql files
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlLevik authored and github-actions[bot] committed Jul 8, 2024
1 parent 2a24f69 commit b9d6a9a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions schemas/ispyb/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ INSERT INTO `BLSample` (`blSampleId`, `diffractionPlanId`, `crystalId`, `contain
/*!40000 ALTER TABLE `BLSample` ENABLE KEYS */;

/*!40000 ALTER TABLE `BLSampleGroup` DISABLE KEYS */;
INSERT INTO `BLSampleGroup` (`blSampleGroupId`, `name`, `proposalId`) VALUES (5,NULL,37027),
(6,'foo',37027),
(7,'bar',37027);
INSERT INTO `BLSampleGroup` (`blSampleGroupId`, `name`, `proposalId`, `ownerId`) VALUES (5,NULL,37027,NULL),
(6,'foo',37027,NULL),
(7,'bar',37027,NULL);
/*!40000 ALTER TABLE `BLSampleGroup` ENABLE KEYS */;

/*!40000 ALTER TABLE `BLSampleGroup_has_BLSample` DISABLE KEYS */;
Expand Down
8 changes: 6 additions & 2 deletions schemas/ispyb/lookups.sql
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@ INSERT INTO `SchemaStatus` (`schemaStatusId`, `scriptName`, `schemaStatus`, `rec
(285,'2024_03_20_Shipping_Dewar_externalIds.sql','DONE','2024-03-26 16:40:34'),
(286,'2024_03_26_AdminVar_bump_version.sql','DONE','2024-03-26 16:40:34'),
(287,'2024_03_26_AutoProc_index_refined_unit_cell.sql','DONE','2024-03-26 16:40:34'),
(288,'2023_11_16_AdminVar_bump_version.sql','DONE','2024-03-26 16:47:25');
(288,'2023_11_16_AdminVar_bump_version.sql','DONE','2024-03-26 16:47:25'),
(289,'2024_05_14_DataCollectionGroup_experimentType.sql','DONE','2024-07-08 10:56:15'),
(290,'2024_05_30_DiffractionPlan_experimentKind.sql','DONE','2024-07-08 10:56:15'),
(291,'2024_07_08_BLSampleGroup_ownerId.sql','DONE','2024-07-08 10:56:15');
/*!40000 ALTER TABLE `SchemaStatus` ENABLE KEYS */;

/*!40000 ALTER TABLE `ComponentType` DISABLE KEYS */;
Expand Down Expand Up @@ -370,7 +373,8 @@ INSERT INTO `ExperimentType` (`experimentTypeId`, `name`, `proposalType`, `activ
(39,'Serial Jet','mx',1),
(40,'Still','mx',1),
(41,'SSX-Chip','mx',1),
(42,'SSX-Jet','mx',1);
(42,'SSX-Jet','mx',1),
(43,'Metal ID','mx',1);
/*!40000 ALTER TABLE `ExperimentType` ENABLE KEYS */;

/*!40000 ALTER TABLE `InspectionType` DISABLE KEYS */;
Expand Down
7 changes: 5 additions & 2 deletions schemas/ispyb/tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,11 @@ CREATE TABLE `BLSampleGroup` (
`blSampleGroupId` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL COMMENT 'Human-readable name',
`proposalId` int(10) unsigned DEFAULT NULL,
`ownerId` int(10) unsigned DEFAULT NULL COMMENT 'Sample group owner',
PRIMARY KEY (`blSampleGroupId`),
KEY `BLSampleGroup_fk_proposalId` (`proposalId`),
KEY `BLSampleGroup_fk_ownerId` (`ownerId`),
CONSTRAINT `BLSampleGroup_fk_ownerId` FOREIGN KEY (`ownerId`) REFERENCES `Person` (`personId`) ON UPDATE CASCADE,
CONSTRAINT `BLSampleGroup_fk_proposalId` FOREIGN KEY (`proposalId`) REFERENCES `Proposal` (`proposalId`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
Expand Down Expand Up @@ -1507,7 +1510,7 @@ CREATE TABLE `DataCollectionGroup` (
`sessionId` int(10) unsigned NOT NULL COMMENT 'references Session table',
`comments` varchar(1024) DEFAULT NULL COMMENT 'comments',
`blSampleId` int(10) unsigned DEFAULT NULL COMMENT 'references BLSample table',
`experimentType` enum('SAD','SAD - Inverse Beam','OSC','Collect - Multiwedge','MAD','Helical','Multi-positional','Mesh','Burn','MAD - Inverse Beam','Characterization','Dehydration','tomo','experiment','EM','PDF','PDF+Bragg','Bragg','single particle','Serial Fixed','Serial Jet','Standard','Time Resolved','Diamond Anvil High Pressure','Custom','XRF map','Energy scan','XRF spectrum','XRF map xas','Mesh3D','Screening','Still','SSX-Chip','SSX-Jet') DEFAULT NULL COMMENT 'Standard: Routine structure determination experiment. Time Resolved: Investigate the change of a system over time. Custom: Special or non-standard data collection.',
`experimentType` enum('SAD','SAD - Inverse Beam','OSC','Collect - Multiwedge','MAD','Helical','Multi-positional','Mesh','Burn','MAD - Inverse Beam','Characterization','Dehydration','tomo','experiment','EM','PDF','PDF+Bragg','Bragg','single particle','Serial Fixed','Serial Jet','Standard','Time Resolved','Diamond Anvil High Pressure','Custom','XRF map','Energy scan','XRF spectrum','XRF map xas','Mesh3D','Screening','Still','SSX-Chip','SSX-Jet','Metal ID') DEFAULT NULL COMMENT 'Standard: Routine structure determination experiment. Time Resolved: Investigate the change of a system over time. Custom: Special or non-standard data collection.',
`startTime` datetime DEFAULT NULL COMMENT 'Start time of the dataCollectionGroup',
`endTime` datetime DEFAULT NULL COMMENT 'end time of the dataCollectionGroup',
`crystalClass` varchar(20) DEFAULT NULL COMMENT 'Crystal Class for industrials users',
Expand Down Expand Up @@ -1713,7 +1716,7 @@ DROP TABLE IF EXISTS `DiffractionPlan`;
CREATE TABLE `DiffractionPlan` (
`diffractionPlanId` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(20) DEFAULT NULL,
`experimentKind` enum('Default','MXPressE','MXPressO','MXPressE_SAD','MXScore','MXPressM','MAD','SAD','Fixed','Ligand binding','Refinement','OSC','MAD - Inverse Beam','SAD - Inverse Beam','MESH','XFE','Stepped transmission','XChem High Symmetry','XChem Low Symmetry','Commissioning') DEFAULT NULL,
`experimentKind` enum('Default','MXPressE','MXPressO','MXPressE_SAD','MXScore','MXPressM','MAD','SAD','Fixed','Ligand binding','Refinement','OSC','MAD - Inverse Beam','SAD - Inverse Beam','MESH','XFE','Stepped transmission','XChem High Symmetry','XChem Low Symmetry','Commissioning','Metal ID') DEFAULT NULL,
`observedResolution` float DEFAULT NULL,
`minimalResolution` float DEFAULT NULL,
`exposureTime` float DEFAULT NULL,
Expand Down

0 comments on commit b9d6a9a

Please sign in to comment.