Skip to content

Commit 3c6b050

Browse files
authored
Merge pull request #112 from stufisher/sampleimage_positioner
Add sampleimage positioners
2 parents fe27028 + f52e881 commit 3c6b050

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2022_06_28_sampleimage_positioner.sql', 'ONGOING');
2+
3+
CREATE TABLE `BLSampleImage_has_Positioner` (
4+
`blSampleImageHasPositionerId` INT UNSIGNED NOT NULL AUTO_INCREMENT,
5+
`blSampleImageId` INT UNSIGNED NOT NULL,
6+
`positionerId` INT UNSIGNED NOT NULL,
7+
`value` float COMMENT 'The position of this positioner for this blsampleimage',
8+
PRIMARY KEY (`blSampleImageHasPositionerId`),
9+
CONSTRAINT `BLSampleImageHasPositioner_ibfk1`
10+
FOREIGN KEY (`blSampleImageId`)
11+
REFERENCES `BLSampleImage`(`blSampleImageId`),
12+
CONSTRAINT `BLSampleImageHasPositioner_ibfk2`
13+
FOREIGN KEY (`positionerId`)
14+
REFERENCES `Positioner`(`positionerId`)
15+
) ENGINE=InnoDB COMMENT='Allows a BLSampleImage to store motor positions along with the image';
16+
17+
UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2022_06_28_sampleimage_positioner.sql';

0 commit comments

Comments
 (0)