diff --git a/schemas/ispyb/updates/2025_06_27_Tomogram_pixelLocation.sql b/schemas/ispyb/updates/2025_06_27_Tomogram_pixelLocation.sql new file mode 100644 index 0000000..93bd724 --- /dev/null +++ b/schemas/ispyb/updates/2025_06_27_Tomogram_pixelLocation.sql @@ -0,0 +1,6 @@ +INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2025_06_27_Tomogram_pixelLocation.sql', 'ONGOING'); + +ALTER TABLE ParticleClassification ADD pixelLocationX int COMMENT 'pixel location of tomogram centre on search map image (x)', ALGORITHM=INSTANT; +ALTER TABLE ParticleClassification ADD pixelLocationY int COMMENT 'pixel location of tomogram centre on search map image (y)', ALGORITHM=INSTANT; + +UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2025_06_27_Tomogram_pixelLocation.sql'; diff --git a/schemas/ispyb/updates/2025_06_27_undo_ParticleClassification_set_Tomogram_pixelLocation.sql b/schemas/ispyb/updates/2025_06_27_undo_ParticleClassification_set_Tomogram_pixelLocation.sql new file mode 100644 index 0000000..f4cdfec --- /dev/null +++ b/schemas/ispyb/updates/2025_06_27_undo_ParticleClassification_set_Tomogram_pixelLocation.sql @@ -0,0 +1,9 @@ +INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2025_06_27_undo_ParticleClassification_set_Tomogram_pixelLocation.sql', 'ONGOING'); + +ALTER TABLE ParticleClassification DROP COLUMN IF EXISTS pixelLocationX; +ALTER TABLE ParticleClassification DROP COLUMN IF EXISTS pixelLocationY; + +ALTER TABLE Tomogram ADD pixelLocationX int COMMENT 'pixel location of tomogram centre on search map image (x)', ALGORITHM=INSTANT; +ALTER TABLE Tomogram ADD pixelLocationY int COMMENT 'pixel location of tomogram centre on search map image (y)', ALGORITHM=INSTANT; + +UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2025_06_27_undo_ParticleClassification_set_Tomogram_pixelLocation.sql';