Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EEG] new table to track EEG additional events (24.1) #8332

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions SQL/0000-00-05-ElectrophysiologyTables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,19 @@ CREATE TABLE `physiological_task_event` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


-- Create `physiological_task_event_opt` table
-- tracks additional events from bids archives
CREATE TABLE `physiological_task_event_opt` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`PhysiologicalTaskEventID` int(10) unsigned NOT NULL,
`TaskName` varchar(50) NOT NULL,
`TaskValue` varchar(255) NULL,
PRIMARY KEY (`ID`),
CONSTRAINT `FK_event_task_opt`
FOREIGN KEY (`PhysiologicalTaskEventID`)
REFERENCES `physiological_task_event` (`PhysiologicalTaskEventID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


-- Create physiological_archive which will store archives of all the files for
-- Front-end download
Expand Down
12 changes: 12 additions & 0 deletions SQL/New_patches/2022-11-22-eeg-additional-events-table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-- Create `physiological_task_event_opt` table
-- tracks additional events from bids archives
CREATE TABLE `physiological_task_event_opt` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`PhysiologicalTaskEventID` int(10) unsigned NOT NULL,
`TaskName` varchar(50) NOT NULL,
`TaskValue` varchar(255) NULL,
PRIMARY KEY (`ID`),
CONSTRAINT `FK_event_task_opt`
FOREIGN KEY (`PhysiologicalTaskEventID`)
REFERENCES `physiological_task_event` (`PhysiologicalTaskEventID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;