From a57d822db54986c92710e2e464219d267e1c56b7 Mon Sep 17 00:00:00 2001 From: Karl Levik Date: Wed, 16 Aug 2023 10:12:18 +0100 Subject: [PATCH] Add EORINumber col to Laboratory table to help with international shipping (#204) --- schemas/ispyb/updates/2023_08_15_Laboratory_EORINumber.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 schemas/ispyb/updates/2023_08_15_Laboratory_EORINumber.sql diff --git a/schemas/ispyb/updates/2023_08_15_Laboratory_EORINumber.sql b/schemas/ispyb/updates/2023_08_15_Laboratory_EORINumber.sql new file mode 100644 index 00000000..e6faa73c --- /dev/null +++ b/schemas/ispyb/updates/2023_08_15_Laboratory_EORINumber.sql @@ -0,0 +1,7 @@ +INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2023_08_15_Laboratory_EORINumber.sql', 'ONGOING'); + +ALTER TABLE Laboratory + ADD EORINumber varchar(17) + COMMENT 'An EORI number consists of an ISO Country code from an EU Member State (2 characters) + a maximum of 15 characters'; + +UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2023_08_15_Laboratory_EORINumber.sql';