Skip to content

Commit 8b2e33e

Browse files
committed
Add update statements to save any missing values before dropping cols
1 parent 9147677 commit 8b2e33e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

schemas/ispyb/updates/2025_03_21_GridInfo_pixelsPerMicron.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2025_03_21_GridInfo_pixelsPerMicron.sql', 'ONGOING');
22

3-
ALTER TABLE GridInfo
3+
UPDATE GridInfo SET micronsPerPixelX = pixelsPerMicronX WHERE micronsPerPixelX IS NULL;
4+
UPDATE GridInfo SET micronsPerPixelY = pixelsPerMicronY WHERE micronsPerPixelY IS NULL;
5+
6+
ALTER TABLE GridInfo
47
DROP COLUMN pixelsPerMicronX,
58
DROP COLUMN pixelsPerMicronY;
69

0 commit comments

Comments
 (0)