Skip to content

Commit a3156c4

Browse files
committed
Add BLSamplePosition table
1 parent 0cb8da0 commit a3156c4

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

schemas/ispyb/updates/2025_04_11_Position_blSampleId_positionType.sql

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2025_05_01_BLSamplePosition.sql', 'ONGOING');
2+
3+
CREATE TABLE `BLSamplePosition` (
4+
`positionId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)',
5+
`blSampleId` int(11) unsigned NOT NULL COMMENT 'FK, references parent sample',
6+
`posX` double DEFAULT NULL,
7+
`posY` double DEFAULT NULL,
8+
`posZ` double DEFAULT NULL,
9+
`recordTimeStamp` datetime DEFAULT NULL COMMENT 'Creation or last update date/time',
10+
`positionType` enum('dispensing') COMMENT 'Type of marked position (e.g.: dispensing location)',
11+
PRIMARY KEY (`positionId`),
12+
CONSTRAINT `BLSamplePosition_fk_blSampleId` FOREIGN KEY (`blSampleId`) REFERENCES `BLSample` (`blSampleId`)
13+
);
14+
15+
UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2025_05_01_BLSamplePosition.sql';

0 commit comments

Comments
 (0)