Skip to content

Commit a27034e

Browse files
authored
New table ProcessedTomogram (#238)
New table ProcessedTomogram
1 parent 5ddec30 commit a27034e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2024_08_08_ProcessedTomogram.sql', 'ONGOING');
2+
3+
CREATE TABLE ProcessedTomogram (
4+
processedTomogramId int(11) unsigned PRIMARY KEY AUTO_INCREMENT,
5+
tomogramId int(11) unsigned NOT NULL COMMENT 'references Tomogram table',
6+
filePath varchar(255) DEFAULT NULL COMMENT 'location on disk for the tomogram file',
7+
processingType varchar(255) DEFAULT NULL COMMENT 'nature of the processed tomogram',
8+
FOREIGN KEY (tomogramId)
9+
REFERENCES Tomogram(tomogramId)
10+
ON DELETE CASCADE
11+
ON UPDATE CASCADE
12+
) COMMENT = 'References to processed tomogram paths';
13+
14+
UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2024_08_08_ProcessedTomogram.sql';

0 commit comments

Comments
 (0)