forked from aces/Loris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[imaging_browser] Add AcquisitionDate field in the files table (aces#…
…6892) This adds an AcquisitionDate column in the files table where the acquisition date of the files will be stored. If none are available for the file, then it will default to NULL. Resolves aces#6883 See also: aces/Loris-MRI#553 and aces/Loris-MRI#554
- Loading branch information
1 parent
d87cae3
commit fe5abfc
Showing
6 changed files
with
328 additions
and
318 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
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
13 changes: 13 additions & 0 deletions
13
SQL/New_patches/2020-08-10_add_AcquisitionDate_to_files.sql
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,13 @@ | ||
|
||
ALTER TABLE files ADD COLUMN `AcquisitionDate` date DEFAULT NULL; | ||
|
||
UPDATE | ||
files f, | ||
parameter_file pf, | ||
parameter_type pt | ||
SET | ||
f.AcquisitionDate=pf.Value | ||
WHERE | ||
f.FileID=pf.FileID | ||
AND pf.ParameterTypeID=pt.ParameterTypeID | ||
AND pt.Name='acquisition_date'; |
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
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
Oops, something went wrong.