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.
[SQL] Add 'path' and 'web_path' data types to ConfigSettings (aces#4087)
Add 'path' and 'web_path' date types to ConfigSettings Add specific types to distinguish paths that are used by the web server and paths that are used by the imaging pipeline from text fields.
- Loading branch information
1 parent
9f52b84
commit 4c0e599
Showing
2 changed files
with
9 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- Add 'path' and 'web_path' to DataType enum. The first should represent an | ||
-- arbitrary path used in LORIS. 'web_path' should represent a full path | ||
-- that is reachable by the web-server i.e. Apache. Paths of type 'web_path' | ||
-- will be validated when configured from the front-end and will throw errors | ||
-- if not reachable by the server. | ||
ALTER TABLE ConfigSettings MODIFY COLUMN DataType enum('text','boolean','email','instrument','textarea','scan_type','lookup_center','path','web_path'); | ||
UPDATE ConfigSettings SET DataType='web_path' where Name IN ('imagePath', 'base', 'data', 'extLibs', 'mincPath', 'DownloadPath', 'IncomingPath', 'MRICodePath', 'MRIUploadIncomingPath', 'GenomicDataPath', 'mediaPath', 'dataDirBasepath'); | ||
UPDATE ConfigSettings SET DataType='path' WHERE Name IN ('log', 'MRICodePath', 'tarchiveLibraryDir', 'get_dicom_info', 'niak_path'); |