Skip to content

Commit 2086eba

Browse files
authored
Preparation for version 4.6.0 (#263)
* Bump version to 4.6.0 and refresh schema files * Update HISTORY.rst with details about v4.6.0 * Rename SQL update file with double file extension
1 parent a082d14 commit 2086eba

File tree

5 files changed

+36
-3
lines changed

5 files changed

+36
-3
lines changed

HISTORY.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ History
55
Unreleased / master
66
-------------------
77

8+
4.6.0 (2025-03-06)
9+
-------------------
10+
11+
New columns:
12+
13+
- Add a ``dewarRegistryId`` FK to the ``Dewar`` table
14+
15+
Data in lookup tables:
16+
17+
- Add 'Atlas' experiment type
18+
19+
Stored procedures:
20+
21+
- Remove superfluous commit in procedure ``upsert_processing_program``
22+
- New procedure ``upsert_processing_program_v2`` with additional param for pipeline ID
23+
24+
Permissions:
25+
26+
- Add ``SELECT`` grant for Expeye role on table ``AutoProcIntegration``
27+
- Add ``EXECUTE`` grant for processing role on new procedure ``upsert_processing_program_v2``
28+
829
4.5.0 (2025-02-25)
930
-------------------
1031

schemas/ispyb/lookups.sql

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
1212

1313
/*!40000 ALTER TABLE `AdminVar` DISABLE KEYS */;
14-
INSERT INTO `AdminVar` (`varId`, `name`, `value`) VALUES (4,'schemaVersion','4.5.0');
14+
INSERT INTO `AdminVar` (`varId`, `name`, `value`) VALUES (4,'schemaVersion','4.6.0');
1515
/*!40000 ALTER TABLE `AdminVar` ENABLE KEYS */;
1616

1717
/*!40000 ALTER TABLE `SchemaStatus` DISABLE KEYS */;
@@ -275,7 +275,10 @@ INSERT INTO `SchemaStatus` (`schemaStatusId`, `scriptName`, `schemaStatus`, `rec
275275
(303,'2025_01_24_Tomogram_gridSquare.sql','DONE','2025-01-29 10:29:27'),
276276
(304,'2025_01_29_AdminVar_bump_version.sql','DONE','2025-01-29 10:29:27'),
277277
(305,'2025_02_14_BLSession_purgedProcessedData.sql','DONE','2025-02-25 15:51:29'),
278-
(306,'2025_02_25_AdminVar_bump_version.sql','DONE','2025-02-25 15:51:30');
278+
(306,'2025_02_25_AdminVar_bump_version.sql','DONE','2025-02-25 15:51:30'),
279+
(307,'2025_02_27_ExperimentType_atlas.sql','DONE','2025-03-06 11:58:07'),
280+
(308,'2025_03_05_Dewar_dewarRegistryId.sql','DONE','2025-03-06 11:58:07'),
281+
(309,'2025_03_06_AdminVar_bump_version.sql','DONE','2025-03-06 11:58:07');
279282
/*!40000 ALTER TABLE `SchemaStatus` ENABLE KEYS */;
280283

281284
/*!40000 ALTER TABLE `ComponentType` DISABLE KEYS */;
@@ -392,7 +395,8 @@ INSERT INTO `ExperimentType` (`experimentTypeId`, `name`, `proposalType`, `activ
392395
(40,'Still','mx',1),
393396
(41,'SSX-Chip','mx',1),
394397
(42,'SSX-Jet','mx',1),
395-
(43,'Metal ID','mx',1);
398+
(43,'Metal ID','mx',1),
399+
(44,'Atlas','em',1);
396400
/*!40000 ALTER TABLE `ExperimentType` ENABLE KEYS */;
397401

398402
/*!40000 ALTER TABLE `InspectionType` DISABLE KEYS */;

schemas/ispyb/tables.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,12 +1614,15 @@ CREATE TABLE `Dewar` (
16141614
`extra` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'JSON column for facility-specific or hard-to-define attributes, e.g. LN2 top-ups and contents checks' CHECK (json_valid(`extra`)),
16151615
`source` varchar(50) DEFAULT current_user(),
16161616
`externalShippingIdFromSynchrotron` int(11) unsigned DEFAULT NULL COMMENT 'ID for shipping from synchrotron in external application',
1617+
`dewarRegistryId` int(11) unsigned DEFAULT NULL COMMENT 'Reference to the registered dewar i.e. the physical item',
16171618
PRIMARY KEY (`dewarId`),
16181619
UNIQUE KEY `barCode` (`barCode`),
16191620
KEY `Dewar_FKIndex1` (`shippingId`),
16201621
KEY `Dewar_FKIndex2` (`firstExperimentId`),
16211622
KEY `Dewar_FKIndexCode` (`code`),
16221623
KEY `Dewar_FKIndexStatus` (`dewarStatus`),
1624+
KEY `Dewar_fk_dewarRegistryId` (`dewarRegistryId`),
1625+
CONSTRAINT `Dewar_fk_dewarRegistryId` FOREIGN KEY (`dewarRegistryId`) REFERENCES `DewarRegistry` (`dewarRegistryId`) ON DELETE CASCADE ON UPDATE CASCADE,
16231626
CONSTRAINT `Dewar_fk_firstExperimentId` FOREIGN KEY (`firstExperimentId`) REFERENCES `BLSession` (`sessionId`) ON DELETE SET NULL ON UPDATE CASCADE,
16241627
CONSTRAINT `Dewar_ibfk_1` FOREIGN KEY (`shippingId`) REFERENCES `Shipping` (`shippingId`) ON DELETE CASCADE ON UPDATE CASCADE
16251628
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

schemas/ispyb/updates/2025_02_27_ExperimentType_atlas.sql.sql renamed to schemas/ispyb/updates/2025_02_27_ExperimentType_atlas.sql

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2025_03_06_AdminVar_bump_version.sql', 'ONGOING');
2+
3+
UPDATE AdminVar SET `value` = '4.6.0' WHERE `name` = 'schemaVersion';
4+
5+
UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2025_03_06_AdminVar_bump_version.sql';

0 commit comments

Comments
 (0)