From d2ab9a55f601a0acd84eab303dc863815fd866c3 Mon Sep 17 00:00:00 2001 From: KarlLevik Date: Fri, 25 Jul 2025 14:54:57 +0100 Subject: [PATCH] Add new column Container.parentContainerLocation --- .../2025_07_25_Container_parentContainerLocation.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 schemas/ispyb/updates/2025_07_25_Container_parentContainerLocation.sql diff --git a/schemas/ispyb/updates/2025_07_25_Container_parentContainerLocation.sql b/schemas/ispyb/updates/2025_07_25_Container_parentContainerLocation.sql new file mode 100644 index 0000000..bf23e79 --- /dev/null +++ b/schemas/ispyb/updates/2025_07_25_Container_parentContainerLocation.sql @@ -0,0 +1,7 @@ +INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2025_07_25_Container_parentContainerLocation.sql', 'ONGOING'); + +ALTER TABLE Container + ADD parentContainerLocation int unsigned + COMMENT 'Indicates where inside the parent container this container is located', ALGORITHM=INSTANT; + +UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2025_07_25_Container_parentContainerLocation.sql';