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/3] 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/3] 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/3] 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';