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

Replace Center_name in mri_protocol with CenterID from psc #7525

Merged
merged 5 commits into from
Oct 6, 2021
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ requesting a new account and will be displayed in the User Accounts module (PR #
#### Bug Fixes
- The default value of the `ScannerID` field of the `mri_protocol` table is now `NULL` instead of `0`. This means that if a protocol is valid on all the study's scanners, then `ScannerID` of the protocol should be set to `NULL` (PR #7496)
- The `EchoTime` field has been added to the following tables: `MRICandidateErrors`, and `mri_violations_log`. `EchoTime` is necessary to distiguish MINC files for multi-echo aquisitions (PR #7515).
- The `Center_name` field in the `mri_protocol` table has been replaced by `CenterID` from the `psc` table. The default value of `CenterID` is `NULL`. Previously, the default for `Center_name` was `AAAA` or `ZZZZ`. (PR #7525)
driusan marked this conversation as resolved.
Show resolved Hide resolved
### Modules
#### Help Editor
- Cleaned up the deprecated column `Parent Topic` (PR #7025)
Expand Down
15 changes: 8 additions & 7 deletions SQL/0000-00-00-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ INSERT INTO `mri_protocol_group` (`Name`) VALUES('Default MRI protocol group');

CREATE TABLE `mri_protocol` (
`ID` int(11) unsigned NOT NULL auto_increment,
`Center_name` varchar(4) NOT NULL default '',
`ScannerID` int(10) unsigned default NULL,
`CenterID` integer unsigned DEFAULT NULL,
`ScannerID` int(10) unsigned DEFAULT NULL,
`Scan_type` int(10) unsigned NOT NULL default '0',
`TR_min` DECIMAL(10,4) DEFAULT NULL,
`TR_max` DECIMAL(10,4) DEFAULT NULL,
Expand Down Expand Up @@ -655,16 +655,17 @@ CREATE TABLE `mri_protocol` (
PRIMARY KEY (`ID`),
KEY `FK_mri_protocol_1` (`ScannerID`),
CONSTRAINT `FK_mri_protocol_1` FOREIGN KEY (`ScannerID`) REFERENCES `mri_scanner` (`ID`),
CONSTRAINT `FK_mri_protocol_2` FOREIGN KEY (`CenterID`) REFERENCES `psc` (`CenterID`),
CONSTRAINT `FK_mri_protocol_group_ID_1` FOREIGN KEY (`MriProtocolGroupID`) REFERENCES `mri_protocol_group` (`MriProtocolGroupID`)
) ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8;


INSERT INTO mri_protocol (Center_name,Scan_type,TR_min,TR_max,TE_min,
INSERT INTO mri_protocol (CenterID,Scan_type,TR_min,TR_max,TE_min,
TE_max,time_min,time_max,MriProtocolGroupID) VALUES
('ZZZZ',48,8000,14000,80,130,0,200,(SELECT MriProtocolGroupID FROM mri_protocol_group WHERE Name='Default MRI protocol group')),
('ZZZZ',40,1900,2700,10,30,0,500,(SELECT MriProtocolGroupID FROM mri_protocol_group WHERE Name='Default MRI protocol group')),
('ZZZZ',44,2000,2500,2,5,NULL,NULL,(SELECT MriProtocolGroupID FROM mri_protocol_group WHERE Name='Default MRI protocol group')),
('ZZZZ',45,3000,9000,100,550,NULL,NULL,(SELECT MriProtocolGroupID FROM mri_protocol_group WHERE Name='Default MRI protocol group'));
(NULL,48,8000,14000,80,130,0,200,(SELECT MriProtocolGroupID FROM mri_protocol_group WHERE Name='Default MRI protocol group')),
(NULL,40,1900,2700,10,30,0,500,(SELECT MriProtocolGroupID FROM mri_protocol_group WHERE Name='Default MRI protocol group')),
(NULL,44,2000,2500,2,5,NULL,NULL,(SELECT MriProtocolGroupID FROM mri_protocol_group WHERE Name='Default MRI protocol group')),
(NULL,45,3000,9000,100,550,NULL,NULL,(SELECT MriProtocolGroupID FROM mri_protocol_group WHERE Name='Default MRI protocol group'));

CREATE TABLE `mri_protocol_group_target` (
`MriProtocolGroupTargetID` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
Expand Down
14 changes: 14 additions & 0 deletions SQL/New_patches/2021-07-29_modify_center_name_in_mri_protocol.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- Add a new CenterID column
ALTER TABLE mri_protocol
ADD COLUMN `CenterID` integer unsigned DEFAULT NULL
AFTER `Center_name`;

ALTER TABLE mri_protocol ADD FOREIGN KEY (`CenterID`) REFERENCES psc(`CenterID`);

-- Populate the CenterID column using Center_name (equivalent to MRI_alias in the psc table)
UPDATE mri_protocol
INNER JOIN psc ON (Center_name = MRI_alias)
SET mri_protocol.CenterID = psc.CenterID;

-- Drop the Center_name table (CenterID will be replacing it)
ALTER TABLE mri_protocol DROP COLUMN `Center_name`;
7 changes: 4 additions & 3 deletions modules/mri_violations/php/mri_protocol_violations.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -170,17 +170,18 @@ class Mri_Protocol_Violations extends \NDB_Menu_Filter
// and add Scan_type from mri_scan_type
// to mri_protocol's Scan_type
$rows = $db->pselect(
"SELECT p.ID, mpg.Name as 'Protocol Group', Center_name, ScannerID,
p.Scan_type, TR_min, TR_max, TE_min, TE_max, TI_min,
"SELECT p.ID, mpg.Name as 'Protocol Group', psc.Name as Center_name,
ScannerID, p.Scan_type, TR_min, TR_max, TE_min, TE_max, TI_min,
TI_max, slice_thickness_min, slice_thickness_max,
xspace_min, xspace_max, yspace_min, yspace_max, zspace_min,
zspace_max, xstep_min, xstep_max, ystep_min, ystep_max,
zstep_min, zstep_max, time_min, time_max,series_description_regex
FROM mri_protocol as p
LEFT JOIN mri_protocol_group mpg
LEFT JOIN mri_protocol_group mpg
ON (mpg.MriProtocolGroupID=p.MriProtocolGroupID)
LEFT JOIN mri_scan_type as s
ON p.Scan_type=s.ID
LEFT JOIN psc ON psc.CenterID=p.CenterID
ORDER BY mpg.MriProtocolGroupID ASC, p.Scan_type ASC",
[]
);
Expand Down
14 changes: 7 additions & 7 deletions raisinbread/RB_files/RB_mri_protocol.sql
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE TABLE `mri_protocol`;
LOCK TABLES `mri_protocol` WRITE;
INSERT INTO `mri_protocol` (`ID`, `Center_name`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1004,'ZZZZ',NULL,63,347.0000,667.0000,5.1900,7.6500,NULL,NULL,4.0000,4.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `Center_name`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1005,'ZZZZ',NULL,44,2400.0000,2400.0000,2.0000,4.0000,1200.0000,1200.0000,0.9700,1.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `Center_name`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1006,'ZZZZ',NULL,45,3200.0000,3200.0000,384.0000,528.0000,NULL,NULL,1.0000,1.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `Center_name`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1007,'ZZZZ',NULL,40,2500.0000,2500.0000,27.0000,27.0000,NULL,NULL,4.0000,4.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,130,130,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `Center_name`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1008,'ZZZZ',NULL,66,10404.0000,14600.0000,88.0000,102.0000,NULL,NULL,2.0000,3.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,25,27,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `Center_name`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1009,'ZZZZ',NULL,65,10200.0000,13000.0000,88.0000,105.0000,NULL,NULL,2.0000,2.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,65,66,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `Center_name`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1010,'ZZZZ',NULL,64,489.0000,489.0000,3.1900,5.6500,NULL,NULL,4.0000,4.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `CenterID`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1004,NULL,NULL,63,347.0000,667.0000,5.1900,7.6500,NULL,NULL,4.0000,4.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `CenterID`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1005,NULL,NULL,44,2400.0000,2400.0000,2.0000,4.0000,1200.0000,1200.0000,0.9700,1.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `CenterID`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1006,NULL,NULL,45,3200.0000,3200.0000,384.0000,528.0000,NULL,NULL,1.0000,1.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `CenterID`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1007,NULL,NULL,40,2500.0000,2500.0000,27.0000,27.0000,NULL,NULL,4.0000,4.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,130,130,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `CenterID`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1008,NULL,NULL,66,10404.0000,14600.0000,88.0000,102.0000,NULL,NULL,2.0000,3.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,25,27,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `CenterID`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1009,NULL,NULL,65,10200.0000,13000.0000,88.0000,105.0000,NULL,NULL,2.0000,2.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,65,66,NULL,NULL,1);
INSERT INTO `mri_protocol` (`ID`, `CenterID`, `ScannerID`, `Scan_type`, `TR_min`, `TR_max`, `TE_min`, `TE_max`, `TI_min`, `TI_max`, `slice_thickness_min`, `slice_thickness_max`, `xspace_min`, `xspace_max`, `yspace_min`, `yspace_max`, `zspace_min`, `zspace_max`, `xstep_min`, `xstep_max`, `ystep_min`, `ystep_max`, `zstep_min`, `zstep_max`, `time_min`, `time_max`, `image_type`, `series_description_regex`, `MriProtocolGroupID`) VALUES (1010,NULL,NULL,64,489.0000,489.0000,3.1900,5.6500,NULL,NULL,4.0000,4.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1);
UNLOCK TABLES;
SET FOREIGN_KEY_CHECKS=1;
16 changes: 8 additions & 8 deletions test/RBdata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1589,17 +1589,17 @@ LOCK TABLES `mri_protocol` WRITE;
/*!40000 ALTER TABLE `mri_protocol` DISABLE KEYS */;
DELETE FROM `mri_protocol`;
INSERT INTO `mri_protocol`
(ID, Center_name, ScannerID, Scan_type, TR_min, TR_max, TE_min, TE_max, TI_min, TI_max,slice_thickness_min, slice_thickness_max, xspace_min, xspace_max, yspace_min, yspace_max, zspace_min, zspace_max, xstep_min, xstep_max, ystep_min, ystep_max, zstep_min, zstep_max, series_description_regex, time_min, time_max)
VALUES(1000, 'ZZZZ', 9, 48, 8000.0000, 14000.0000, 80.0000, 130.0000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 200);
(ID, CenterID, ScannerID, Scan_type, TR_min, TR_max, TE_min, TE_max, TI_min, TI_max,slice_thickness_min, slice_thickness_max, xspace_min, xspace_max, yspace_min, yspace_max, zspace_min, zspace_max, xstep_min, xstep_max, ystep_min, ystep_max, zstep_min, zstep_max, series_description_regex, time_min, time_max)
VALUES(1000, NULL, 9, 48, 8000.0000, 14000.0000, 80.0000, 130.0000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 200);
INSERT INTO `mri_protocol`
(ID, Center_name, ScannerID, Scan_type, TR_min, TR_max, TE_min, TE_max, TI_min, TI_max, slice_thickness_min, slice_thickness_max, xspace_min, xspace_max, yspace_min, yspace_max, zspace_min, zspace_max, xstep_min, xstep_max, ystep_min, ystep_max, zstep_min, zstep_max, series_description_regex, time_min, time_max)
VALUES(1001, 'ZZZZ', 9, 40, 1900.0000, 2700.0000, 10.0000, 30.0000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 500);
(ID, CenterID, ScannerID, Scan_type, TR_min, TR_max, TE_min, TE_max, TI_min, TI_max, slice_thickness_min, slice_thickness_max, xspace_min, xspace_max, yspace_min, yspace_max, zspace_min, zspace_max, xstep_min, xstep_max, ystep_min, ystep_max, zstep_min, zstep_max, series_description_regex, time_min, time_max)
VALUES(1001, NULL, 9, 40, 1900.0000, 2700.0000, 10.0000, 30.0000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 500);
INSERT INTO `mri_protocol`
(ID, Center_name, ScannerID, Scan_type, TR_min, TR_max, TE_min, TE_max, TI_min, TI_max, slice_thickness_min, slice_thickness_max, xspace_min, xspace_max, yspace_min, yspace_max, zspace_min, zspace_max, xstep_min, xstep_max, ystep_min, ystep_max, zstep_min, zstep_max, series_description_regex, time_min, time_max)
VALUES(1002, 'ZZZZ', 9, 44, 2000.0000, 2500.0000, 2.0000, 5.0000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
(ID, CenterID, ScannerID, Scan_type, TR_min, TR_max, TE_min, TE_max, TI_min, TI_max, slice_thickness_min, slice_thickness_max, xspace_min, xspace_max, yspace_min, yspace_max, zspace_min, zspace_max, xstep_min, xstep_max, ystep_min, ystep_max, zstep_min, zstep_max, series_description_regex, time_min, time_max)
VALUES(1002, NULL, 9, 44, 2000.0000, 2500.0000, 2.0000, 5.0000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `mri_protocol`
(ID, Center_name, ScannerID, Scan_type, TR_min, TR_max, TE_min, TE_max, TI_min, TI_max, slice_thickness_min, slice_thickness_max, xspace_min, xspace_max, yspace_min, yspace_max, zspace_min, zspace_max, xstep_min, xstep_max, ystep_min, ystep_max, zstep_min, zstep_max, series_description_regex, time_min, time_max)
VALUES(1003, 'ZZZZ', 9, 45, 3000.0000, 9000.0000, 100.0000, 550.0000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
(ID, CenterID, ScannerID, Scan_type, TR_min, TR_max, TE_min, TE_max, TI_min, TI_max, slice_thickness_min, slice_thickness_max, xspace_min, xspace_max, yspace_min, yspace_max, zspace_min, zspace_max, xstep_min, xstep_max, ystep_min, ystep_max, zstep_min, zstep_max, series_description_regex, time_min, time_max)
VALUES(1003, NULL, 9, 45, 3000.0000, 9000.0000, 100.0000, 550.0000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
/*!40000 ALTER TABLE `mri_protocol` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down