diff --git a/schemas/ispyb/updates/2024_09_17_SpaceGroup_trim.sql b/schemas/ispyb/updates/2024_09_17_SpaceGroup_trim.sql new file mode 100644 index 00000000..accbe502 --- /dev/null +++ b/schemas/ispyb/updates/2024_09_17_SpaceGroup_trim.sql @@ -0,0 +1,5 @@ +INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2024_09_17_SpaceGroup_trim', 'ONGOING'); + +UPDATE SpaceGroup SET spaceGroupShortName=trim(trailing '1' FROM spaceGroupShortName) WHERE spaceGroupId in (51,52,53,54,55,56,57,58,59,60,61,62,63,64,73,74,127,128,129,130,205,206,223,224,227,228,230); + +UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2024_09_17_SpaceGroup_trim.sql';