-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2023_01_16_Tomogram_new_cols.sql', 'ONGOING'); | ||
|
||
ALTER TABLE Tomogram | ||
ADD fileDirectory varchar(255) DEFAULT NULL COMMENT 'Directory path for files referenced by this table', | ||
ADD centralSliceImage varchar(255) DEFAULT NULL COMMENT 'Tomogram central slice file', | ||
ADD tomogramMovie varchar(255) DEFAULT NULL COMMENT 'Movie traversing the tomogram across an axis', | ||
ADD xyShiftPlot varchar(255) DEFAULT NULL COMMENT 'XY shift plot file', | ||
ADD projXY varchar(255) DEFAULT NULL COMMENT 'XY projection file', | ||
ADD projXZ varchar(255) DEFAULT NULL COMMENT 'XZ projection file', | ||
ADD processingJobId int(11) unsigned DEFAULT NULL, | ||
ADD recordTimeStamp datetime DEFAULT current_timestamp() COMMENT 'Creation or last update date/time', | ||
ADD CONSTRAINT Tomogram_fk_processingJobId FOREIGN KEY (processingJobId) REFERENCES ProcessingJob (processingJobId); | ||
|
||
/* | ||
-- Undo changes | ||
ALTER TABLE Tomogram | ||
DROP IF EXISTS fileDirectory, | ||
DROP IF EXISTS centralSliceImage, | ||
DROP IF EXISTS tomogramMovie, | ||
DROP IF EXISTS xyShiftPlot, | ||
DROP IF EXISTS projXY, | ||
DROP IF EXISTS projXZ, | ||
DROP IF EXISTS processingJobId, | ||
DROP IF EXISTS recordTimeStamp, | ||
DROP CONSTRAINT IF EXISTS Tomogram_FK_processingJobId; | ||
*/ | ||
|
||
UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2023_01_16_Tomogram_new_cols.sql'; |