From 81d4f7d780b2ab195bc713f155a1360086ddbfeb Mon Sep 17 00:00:00 2001 From: Guilherme de Freitas Date: Tue, 6 Jan 2026 10:44:01 +0000 Subject: [PATCH] Add columns for atlas/grid square colour channels --- .../2026_01_05_GridSquare_Atlas_channels.sql | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 schemas/ispyb/updates/2026_01_05_GridSquare_Atlas_channels.sql diff --git a/schemas/ispyb/updates/2026_01_05_GridSquare_Atlas_channels.sql b/schemas/ispyb/updates/2026_01_05_GridSquare_Atlas_channels.sql new file mode 100644 index 0000000..da45f8f --- /dev/null +++ b/schemas/ispyb/updates/2026_01_05_GridSquare_Atlas_channels.sql @@ -0,0 +1,41 @@ +INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2026_01_05_GridSquare_Atlas_channels.sql ', 'ONGOING'); + +ALTER TABLE GridSquare + ADD hasRed boolean DEFAULT 0 + COMMENT 'Whether region has red channel', + ADD hasBlue boolean DEFAULT 0 + COMMENT 'Whether region has blue channel', + ADD hasGreen boolean DEFAULT 0 + COMMENT 'Whether region has green channel', + ADD hasYellow boolean DEFAULT 0 + COMMENT 'Whether region has yellow channel', + ADD hasCyan boolean DEFAULT 0 + COMMENT 'Whether region has cyan channel', + ADD hasMagenta boolean DEFAULT 0 + COMMENT 'Whether region has magenta channel', + ADD hasGrey boolean DEFAULT 0 + COMMENT 'Whether region has grey channel', + ADD mode enum('Bright Field and Fluorescent', 'Bright Field', 'Fluorescent', 'Tomography', 'Single Particle') + COMMENT 'Collection mode', + ALGORITHM=INSTANT; + +ALTER TABLE Atlas + ADD hasRed boolean DEFAULT 0 + COMMENT 'Whether atlas has red channel', + ADD hasBlue boolean DEFAULT 0 + COMMENT 'Whether atlas has blue channel', + ADD hasGreen boolean DEFAULT 0 + COMMENT 'Whether atlas has green channel', + ADD hasYellow boolean DEFAULT 0 + COMMENT 'Whether atlas has yellow channel', + ADD hasCyan boolean DEFAULT 0 + COMMENT 'Whether atlas has cyan channel', + ADD hasMagenta boolean DEFAULT 0 + COMMENT 'Whether atlas has magenta channel', + ADD hasGrey boolean DEFAULT 0 + COMMENT 'Whether atlas has grey channel', + ADD mode enum('Bright Field and Fluorescent', 'Bright Field', 'Fluorescent', 'Tomography', 'Single Particle') + COMMENT 'Collection mode', + ALGORITHM=INSTANT; + +UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2026_01_05_GridSquare_Atlas_channels.sql';