Skip to content

Commit

Permalink
Add EORINumber col to Laboratory table to help with international shi…
Browse files Browse the repository at this point in the history
…pping (#204)
  • Loading branch information
KarlLevik authored Aug 16, 2023
1 parent 9c3f4c6 commit a57d822
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions schemas/ispyb/updates/2023_08_15_Laboratory_EORINumber.sql
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit a57d822

Please sign in to comment.