Skip to content

Commit

Permalink
Merge pull request #253 from gfrn/tomogram-mmag-gridsquare
Browse files Browse the repository at this point in the history
Add gridSquareId foreign key in Tomogram table
  • Loading branch information
gfrn authored Jan 29, 2025
2 parents 9c9cc8e + ff73888 commit d1fca49
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions schemas/ispyb/updates/2025_01_24_Tomogram_gridSquare.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2025_01_24_Tomogram_gridSquare.sql', 'ONGOING');

ALTER TABLE Tomogram
ADD gridSquareId int(11) unsigned COMMENT 'FK, references medium mag map in GridSquare',
ADD CONSTRAINT `Tomogram_fk_gridSquareId`
FOREIGN KEY (`gridSquareId`)
REFERENCES `GridSquare` (`gridSquareId`);

UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2025_01_24_Tomogram_gridSquare.sql';

0 comments on commit d1fca49

Please sign in to comment.