Skip to content

Commit

Permalink
Update database sql files (#190)
Browse files Browse the repository at this point in the history
Co-authored-by: KarlLevik <KarlLevik@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and KarlLevik authored May 11, 2023
1 parent bbb829f commit bebefa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion schemas/ispyb/lookups.sql
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ INSERT INTO `SchemaStatus` (`schemaStatusId`, `scriptName`, `schemaStatus`, `rec
(249,'2023_04_17_AdminVar_bump_version_v2.sql','DONE','2023-04-17 11:27:26'),
(250,'2023_04_18_Remove_upsert_XrayCentring.sql','DONE','2023-04-18 14:59:34'),
(251,'2023_05_05_Dewar_extra.sql','DONE','2023-05-05 14:25:42'),
(252,'2023_05_05_ParticleClassificationGroup_selected.sql','DONE','2023-05-05 14:25:42');
(252,'2023_05_05_ParticleClassificationGroup_selected.sql','DONE','2023-05-05 14:25:42'),
(253,'2023_05_09_Dewar_modify_comments.sql','DONE','2023-05-11 15:32:52'),
(254,'2023_05_11_ParticleClassification_selected.sql','DONE','2023-05-11 15:32:52');
/*!40000 ALTER TABLE `SchemaStatus` ENABLE KEYS */;

/*!40000 ALTER TABLE `ComponentType` DISABLE KEYS */;
Expand Down
4 changes: 2 additions & 2 deletions schemas/ispyb/tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ CREATE TABLE `Dewar` (
`dewarId` int(10) unsigned NOT NULL AUTO_INCREMENT,
`shippingId` int(10) unsigned DEFAULT NULL,
`code` varchar(45) DEFAULT NULL,
`comments` tinytext DEFAULT NULL,
`comments` varchar(1024) DEFAULT NULL,
`storageLocation` varchar(45) DEFAULT NULL,
`dewarStatus` varchar(45) DEFAULT NULL,
`bltimeStamp` datetime DEFAULT NULL,
Expand Down Expand Up @@ -2733,6 +2733,7 @@ CREATE TABLE `ParticleClassification` (
`overallFourierCompleteness` float DEFAULT NULL,
`particleClassificationGroupId` int(10) unsigned DEFAULT NULL,
`classDistribution` float DEFAULT NULL COMMENT 'Provides a figure of merit for the class, higher number is better',
`selected` tinyint(1) DEFAULT 0 COMMENT 'Indicates whether the class is selected for further processing or not',
PRIMARY KEY (`particleClassificationId`),
KEY `ParticleClassification_fk_particleClassificationGroupId` (`particleClassificationGroupId`),
CONSTRAINT `ParticleClassification_fk_particleClassificationGroupId` FOREIGN KEY (`particleClassificationGroupId`) REFERENCES `ParticleClassificationGroup` (`particleClassificationGroupId`) ON DELETE CASCADE ON UPDATE CASCADE
Expand All @@ -2750,7 +2751,6 @@ CREATE TABLE `ParticleClassificationGroup` (
`numberOfParticlesPerBatch` int(10) unsigned DEFAULT NULL COMMENT 'total number of particles per batch (a large integer)',
`numberOfClassesPerBatch` int(10) unsigned DEFAULT NULL,
`symmetry` varchar(20) DEFAULT NULL,
`selected` tinyint(1) DEFAULT 0 COMMENT 'Indicates whether the group is selected for processing or not.',
PRIMARY KEY (`particleClassificationGroupId`),
KEY `ParticleClassificationGroup_fk_particlePickerId` (`particlePickerId`),
KEY `ParticleClassificationGroup_fk_programId` (`programId`),
Expand Down

0 comments on commit bebefa8

Please sign in to comment.