From 707ec92952ca9c79f59324ec3d7198d316d2f48b Mon Sep 17 00:00:00 2001 From: Karl Levik Date: Tue, 12 Mar 2024 18:40:58 +0000 Subject: [PATCH] Add a source column to Shipping, Dewar, Container, BLSample (#226) --- .../ispyb/updates/2024_03_12_source_column.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 schemas/ispyb/updates/2024_03_12_source_column.sql diff --git a/schemas/ispyb/updates/2024_03_12_source_column.sql b/schemas/ispyb/updates/2024_03_12_source_column.sql new file mode 100644 index 00000000..2d68247c --- /dev/null +++ b/schemas/ispyb/updates/2024_03_12_source_column.sql @@ -0,0 +1,15 @@ +INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2024_03_12_source_column.sql', 'ONGOING'); + +ALTER TABLE Shipping + ADD source varchar(50) DEFAULT current_user(); + +ALTER TABLE Dewar + ADD source varchar(50) DEFAULT current_user(); + +ALTER TABLE Container + ADD source varchar(50) DEFAULT current_user(); + +ALTER TABLE BLSample + ADD source varchar(50) DEFAULT current_user(); + +UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2024_03_12_source_column.sql';