Skip to content

Commit 28dd3c2

Browse files
committed
[EEG] EEG uploader module
1 parent de56976 commit 28dd3c2

14 files changed

+1691
-1
lines changed

SQL/0000-00-01-Modules.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ INSERT INTO modules (Name, Active) VALUES ('timepoint_list', 'Y');
5151
INSERT INTO modules (Name, Active) VALUES ('user_accounts', 'Y');
5252
INSERT INTO modules (Name, Active) VALUES ('electrophysiology_browser', 'Y');
5353
INSERT INTO modules (Name, Active) VALUES ('dqt', 'Y');
54+
INSERT INTO modules (Name, Active) VALUES ('electrophysiology_uploader', 'Y');
5455

5556
ALTER TABLE issues ADD CONSTRAINT `fk_issues_7` FOREIGN KEY (`module`) REFERENCES `modules` (`ID`);

SQL/0000-00-03-ConfigTables.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ INSERT INTO ConfigSettings (Name, Description, Visible, AllowMultiple, DataType,
7777
INSERT INTO ConfigSettings (Name, Description, Visible, AllowMultiple, DataType, Parent, Label, OrderNumber) SELECT 'MINCToolsPath', 'Path to the MINC tools', 1, 0, 'web_path', ID, 'Path to the MINC tools', 12 FROM ConfigSettings WHERE Name="paths";
7878
INSERT INTO ConfigSettings (Name, Description, Visible, AllowMultiple, DataType, Parent, Label, OrderNumber) SELECT 'documentRepositoryPath', 'Path to uploaded document repository files', 1, 0, 'web_path', ID, 'Document Repository Upload Path', 13 FROM ConfigSettings WHERE Name="paths";
7979
INSERT INTO ConfigSettings (Name, Description, Visible, AllowMultiple, DataType, Parent, Label, OrderNumber) SELECT 'dataReleasePath', 'Path to uploaded data release files', 1, 0, 'web_path', ID, 'Data release Upload Path', 14 FROM ConfigSettings WHERE Name="paths";
80+
INSERT INTO ConfigSettings (Name, Description, Visible, AllowMultiple, DataType, Parent, Label, OrderNumber) SELECT 'EEGUploadIncomingPath', 'Path to the upload directory for incoming EEG studies', 1, 0, 'text', ID, 'EEG Incoming Directory', 7 FROM ConfigSettings WHERE Name="paths";
81+
8082

8183

8284
INSERT INTO ConfigSettings (Name, Description, Visible, AllowMultiple, Label, OrderNumber) VALUES ('gui', 'Settings related to the overall display of LORIS', 1, 0, 'GUI', 3);
@@ -284,4 +286,4 @@ INSERT INTO Config (ConfigID, Value) SELECT ID, '' FROM ConfigSettings WHERE Na
284286
INSERT INTO Config (ConfigID, Value) SELECT ID, '' FROM ConfigSettings WHERE Name='bids_dataset_authors';
285287
INSERT INTO Config (ConfigID, Value) SELECT ID, '' FROM ConfigSettings WHERE Name='bids_acknowledgments_text';
286288
INSERT INTO Config (ConfigID, Value) SELECT ID, '' FROM ConfigSettings WHERE Name='bids_readme_text';
287-
INSERT INTO Config (ConfigID, Value) SELECT ID, '' FROM ConfigSettings WHERE Name='bids_validator_options_to_ignore';
289+
INSERT INTO Config (ConfigID, Value) SELECT ID, '' FROM ConfigSettings WHERE Name='bids_validator_options_to_ignore';

SQL/0000-00-05-ElectrophysiologyTables.sql

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,21 @@ CREATE TABLE `physiological_annotation_rel` (
380380
REFERENCES `physiological_annotation_file` (`AnnotationFileID`)
381381
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
382382

383+
-- Create EEG upload table
384+
CREATE TABLE `electrophysiology_uploader` (
385+
`UploadID` int(10) unsigned NOT NULL AUTO_INCREMENT,
386+
`UploadedBy` varchar(255) NOT NULL DEFAULT '',
387+
`UploadDate` DateTime DEFAULT NULL,
388+
`UploadLocation` varchar(255) NOT NULL DEFAULT '',
389+
`Status` enum('Not Started', 'In Progress', 'Complete', 'Failed') DEFAULT 'Not Started',
390+
`SessionID` int(10) unsigned NOT NULL default '0',
391+
`MetaData` TEXT default NULL,
392+
PRIMARY KEY (`UploadID`),
393+
KEY (`SessionID`),
394+
CONSTRAINT `FK_eegupload_SessionID`
395+
FOREIGN KEY (`SessionID`) REFERENCES `session` (`ID`)
396+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
397+
383398
-- Insert into physiological_output_type
384399
INSERT INTO physiological_output_type
385400
(`OutputTypeName`, `OutputTypeDescription`)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
-- Create EEG upload table
2+
CREATE TABLE `electrophysiology_uploader` (
3+
`UploadID` int(10) unsigned NOT NULL AUTO_INCREMENT,
4+
`UploadedBy` varchar(255) NOT NULL DEFAULT '',
5+
`UploadDate` DateTime DEFAULT NULL,
6+
`UploadLocation` varchar(255) NOT NULL DEFAULT '',
7+
`Status` enum('Not Started', 'In Progress', 'Complete', 'Failed') DEFAULT 'Not Started',
8+
`SessionID` int(10) unsigned NOT NULL default '0',
9+
`MetaData` TEXT default NULL,
10+
PRIMARY KEY (`UploadID`),
11+
KEY (`SessionID`),
12+
CONSTRAINT `FK_eegupload_SessionID`
13+
FOREIGN KEY (`SessionID`) REFERENCES `session` (`ID`)
14+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
15+
16+
-- Add to module table
17+
INSERT INTO modules (Name, Active) VALUES ('electrophysiology_uploader', 'Y');
18+
19+
-- Add new configurations for eeg uploader
20+
INSERT INTO ConfigSettings (Name, Description, Visible, AllowMultiple, DataType, Parent, Label, OrderNumber) SELECT 'EEGUploadIncomingPath', 'Path to the upload directory for incoming EEG studies', 1, 0, 'text', ID, 'EEG Incoming Directory', 7 FROM ConfigSettings WHERE Name="paths";
21+

0 commit comments

Comments
 (0)