Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RobotActionPosition #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions schemas/ispyb/updates/2022_11_17_RobotActionPosition.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2022_11_17_RobotActionPosition.sql', 'ONGOING');

CREATE TABLE `RobotActionPosition` (
`robotActionPositionId` int(11) unsigned NOT NULL AUTO_INCREMENT,
`robotActionId` int(11) unsigned NOT NULL,
`type` enum('reference', 'real'),
`id` tinyint(3),
`posX` double DEFAULT NULL,
`posY` double DEFAULT NULL,
`posZ` double DEFAULT NULL,
PRIMARY KEY (`robotActionPositionId`),
KEY `RobotAction_has_Position_fk1` (`robotActionId`),
CONSTRAINT `RobotAction_has_Position_fk1` FOREIGN KEY (`robotActionId`) REFERENCES `RobotAction` (`robotActionId`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT 'Store a series of x,y(,z) positions along with a Robot(Sample)Action';

ALTER TABLE `RobotAction`
CHANGE `actionType` `actionType` ENUM('LOAD','UNLOAD','DISPOSE','STORE','WASH','ANNEAL','MOSAIC','REFERENCE') DEFAULT NULL,
ADD `resultFilePath` varchar(255) DEFAULT NULL;

ALTER TABLE `BLSubSample`
CHANGE `source` `source` enum('manual','auto','reference') DEFAULT 'manual';

UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2022_11_17_RobotActionPosition.sql';