Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions schemas/ispyb/updates/2025_06_27_Tomogram_pixelLocation.sql
Original file line number Diff line number Diff line change
@@ -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';
Original file line number Diff line number Diff line change
@@ -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';