From 5aadc8ec06bab87d35b86584a7a83738459eaaf7 Mon Sep 17 00:00:00 2001 From: Guilherme de Freitas Date: Thu, 2 Jul 2026 10:56:15 +0100 Subject: [PATCH 1/5] Add UUID column to AutoProcProgram ID --- schemas/ispyb/updates/2026_07_02_AutoProcProgram_jobUuid.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 schemas/ispyb/updates/2026_07_02_AutoProcProgram_jobUuid.sql diff --git a/schemas/ispyb/updates/2026_07_02_AutoProcProgram_jobUuid.sql b/schemas/ispyb/updates/2026_07_02_AutoProcProgram_jobUuid.sql new file mode 100644 index 0000000..d444e8a --- /dev/null +++ b/schemas/ispyb/updates/2026_07_02_AutoProcProgram_jobUuid.sql @@ -0,0 +1,5 @@ +INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2026_07_02_AutoProcProgram_jobUuid.sql', 'ONGOING'); + +ALTER TABLE AutoProcProgram ADD jobUuid uuid NULL COMMENT 'External UUID for the job as described by the Zocalo service'; + +UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2026_07_02_AutoProcProgram_jobUuid.sql'; From d3cffe861a1e630ed41fec85bc6e55f33e781e19 Mon Sep 17 00:00:00 2001 From: Guilherme de Freitas Date: Thu, 2 Jul 2026 11:14:00 +0100 Subject: [PATCH 2/5] Add tomogram thickness column, lamella tomogram experiment type --- .../2026_07_02_ExperimentType_lamellaTomography.sql | 7 +++++++ schemas/ispyb/updates/2026_07_02_Tomogram_thickness.sql | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 schemas/ispyb/updates/2026_07_02_ExperimentType_lamellaTomography.sql create mode 100644 schemas/ispyb/updates/2026_07_02_Tomogram_thickness.sql diff --git a/schemas/ispyb/updates/2026_07_02_ExperimentType_lamellaTomography.sql b/schemas/ispyb/updates/2026_07_02_ExperimentType_lamellaTomography.sql new file mode 100644 index 0000000..114a848 --- /dev/null +++ b/schemas/ispyb/updates/2026_07_02_ExperimentType_lamellaTomography.sql @@ -0,0 +1,7 @@ +INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2026_07_02_ExperimentType_lamellaTomography.sql', 'ONGOING'); + +INSERT INTO ispyb.ExperimentType (experimentTypeId, name, proposalType, active) VALUES(48, 'Lamella Tomography', 'em', 1); + +UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2026_07_02_ExperimentType_lamellaTomography.sql'; + + diff --git a/schemas/ispyb/updates/2026_07_02_Tomogram_thickness.sql b/schemas/ispyb/updates/2026_07_02_Tomogram_thickness.sql new file mode 100644 index 0000000..f147d9b --- /dev/null +++ b/schemas/ispyb/updates/2026_07_02_Tomogram_thickness.sql @@ -0,0 +1,5 @@ +INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2026_07_02_Tomogram_thickness.sql', 'ONGOING'); + +ALTER TABLE Tomogram ADD thickness float NULL COMMENT 'Unit: nm'; + +UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2026_07_02_Tomogram_thickness.sql'; From 2043c00ad687d1f2bc55e0aa1bbf12ba1422c2a0 Mon Sep 17 00:00:00 2001 From: Guilherme de Freitas Date: Thu, 2 Jul 2026 11:19:30 +0100 Subject: [PATCH 3/5] Update column type --- schemas/ispyb/updates/2026_07_02_AutoProcProgram_jobUuid.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/ispyb/updates/2026_07_02_AutoProcProgram_jobUuid.sql b/schemas/ispyb/updates/2026_07_02_AutoProcProgram_jobUuid.sql index d444e8a..0ebf736 100644 --- a/schemas/ispyb/updates/2026_07_02_AutoProcProgram_jobUuid.sql +++ b/schemas/ispyb/updates/2026_07_02_AutoProcProgram_jobUuid.sql @@ -1,5 +1,5 @@ INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2026_07_02_AutoProcProgram_jobUuid.sql', 'ONGOING'); -ALTER TABLE AutoProcProgram ADD jobUuid uuid NULL COMMENT 'External UUID for the job as described by the Zocalo service'; +ALTER TABLE AutoProcProgram ADD jobUuid binary(16) NULL COMMENT 'External UUID for the job as described by the Zocalo service'; UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2026_07_02_AutoProcProgram_jobUuid.sql'; From e3b66299e76608052d42d77bc0b909e448d94a60 Mon Sep 17 00:00:00 2001 From: Guilherme de Freitas Date: Mon, 13 Jul 2026 10:57:20 +0100 Subject: [PATCH 4/5] Update new experiment types --- .../updates/2026_07_02_ExperimentType_lamellaTomography.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/schemas/ispyb/updates/2026_07_02_ExperimentType_lamellaTomography.sql b/schemas/ispyb/updates/2026_07_02_ExperimentType_lamellaTomography.sql index 114a848..333e87d 100644 --- a/schemas/ispyb/updates/2026_07_02_ExperimentType_lamellaTomography.sql +++ b/schemas/ispyb/updates/2026_07_02_ExperimentType_lamellaTomography.sql @@ -1,6 +1,7 @@ INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2026_07_02_ExperimentType_lamellaTomography.sql', 'ONGOING'); -INSERT INTO ispyb.ExperimentType (experimentTypeId, name, proposalType, active) VALUES(48, 'Lamella Tomography', 'em', 1); +INSERT INTO ExperimentType (experimentTypeId, name, proposalType, active) VALUES(48, 'Lamella Tomography', 'em', 1); +INSERT INTO ExperimentType (experimentTypeId, name,proposalType,active) VALUES (49, 'Characterisation','mx',1); UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2026_07_02_ExperimentType_lamellaTomography.sql'; From dcaad5a0f370f8ac2c5c80bd7b8ce7d7cbc388ce Mon Sep 17 00:00:00 2001 From: Guilherme de Freitas Date: Mon, 13 Jul 2026 10:59:11 +0100 Subject: [PATCH 5/5] Update experiment type IDs --- .../updates/2026_07_02_ExperimentType_lamellaTomography.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schemas/ispyb/updates/2026_07_02_ExperimentType_lamellaTomography.sql b/schemas/ispyb/updates/2026_07_02_ExperimentType_lamellaTomography.sql index 333e87d..1666ad1 100644 --- a/schemas/ispyb/updates/2026_07_02_ExperimentType_lamellaTomography.sql +++ b/schemas/ispyb/updates/2026_07_02_ExperimentType_lamellaTomography.sql @@ -1,7 +1,7 @@ INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2026_07_02_ExperimentType_lamellaTomography.sql', 'ONGOING'); -INSERT INTO ExperimentType (experimentTypeId, name, proposalType, active) VALUES(48, 'Lamella Tomography', 'em', 1); -INSERT INTO ExperimentType (experimentTypeId, name,proposalType,active) VALUES (49, 'Characterisation','mx',1); +INSERT INTO ExperimentType (experimentTypeId, name, proposalType, active) VALUES(49, 'Lamella Tomography', 'em', 1); +INSERT INTO ExperimentType (experimentTypeId, name,proposalType,active) VALUES (50, 'Characterisation','mx',1); UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2026_07_02_ExperimentType_lamellaTomography.sql';