Skip to content

Commit 0b84110

Browse files
authored
[raisinbread] Fix consent data discrepancy (#8297)
Fixes some inconsistent consent data in raisinbread Fixes #6992
1 parent 93e473c commit 0b84110

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

raisinbread/RB_files/RB_candidate_consent_history.sql

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,9 @@
11
SET FOREIGN_KEY_CHECKS=0;
22
TRUNCATE TABLE `candidate_consent_history`;
33
LOCK TABLES `candidate_consent_history` WRITE;
4-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (1,'2016-06-21 20:29:43','1001-01-01','1001-01-01','ROM484','study_consent','Consent to Study',NULL,'admin');
5-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (2,'2016-06-21 20:30:38','1001-01-01','1001-01-01','ROM439','study_consent','Consent to Study',NULL,'admin');
6-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (3,'2016-06-21 20:30:52','1001-01-01','1001-01-01','OTT256','study_consent','Consent to Study',NULL,'admin');
7-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (4,'2016-06-21 20:31:02','1001-01-01','1001-01-01','MTL126','study_consent','Consent to Study',NULL,'admin');
8-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (5,'2016-06-21 20:31:30','1001-01-01','1001-01-01','OTT256','study_consent','Consent to Study',NULL,'admin');
9-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (6,'2016-06-21 20:31:46','1001-01-01','1001-01-01','MTL126','study_consent','Consent to Study',NULL,'admin');
10-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (7,'2016-06-21 20:32:14','1001-01-01','1001-01-01','ROM484','study_consent','Consent to Study',NULL,'admin');
11-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (8,'2016-06-21 20:32:47','1001-01-01','1001-01-01','MTL126','study_consent','Consent to Study',NULL,'admin');
12-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (9,'2016-06-21 20:33:48','1001-01-01','1001-01-01','ROM439','study_consent','Consent to Study',NULL,'admin');
13-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (10,'2016-06-21 20:34:21','1001-01-01','1001-01-01','ROM439','study_consent','Consent to Study',NULL,'admin');
144
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (11,'2016-09-02 17:57:55','2015-12-31','1001-01-01','DCC090','study_consent','Consent to Study','yes','admin');
155
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (12,'2016-09-02 17:58:24','2015-12-31','1001-01-01','DCC090','study_consent','Consent to Study','yes','admin');
166
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (13,'2016-09-09 22:36:30',NULL,'2015-12-31','DCC090','study_consent','Consent to Study','no','admin');
17-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (14,'2016-09-24 06:13:39',NULL,NULL,'MTL001','study_consent','Consent to Study','no','admin');
18-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (15,'2016-09-24 06:14:04',NULL,NULL,'MTL001','study_consent','Consent to Study','no','admin');
19-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (16,'2016-09-24 06:16:54',NULL,NULL,'MTL001','study_consent','Consent to Study','no','admin');
20-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (17,'2016-09-24 06:17:32',NULL,NULL,'MTL001','study_consent','Consent to Study','no','admin');
21-
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (18,'2016-09-24 06:17:46',NULL,NULL,'MTL001','study_consent','Consent to Study','no','admin');
227
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (19,'2016-09-24 06:19:17','2015-12-31',NULL,'MTL001','study_consent','Consent to Study','yes','admin');
238
INSERT INTO `candidate_consent_history` (`CandidateConsentHistoryID`, `EntryDate`, `DateGiven`, `DateWithdrawn`, `PSCID`, `ConsentName`, `ConsentLabel`, `Status`, `EntryStaff`) VALUES (20,'2016-10-08 01:02:40','2015-10-30',NULL,'MTL005','study_consent','Consent to Study','yes','admin');
249
UNLOCK TABLES;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
SET FOREIGN_KEY_CHECKS=0;
22
TRUNCATE TABLE `candidate_consent_rel`;
33
LOCK TABLES `candidate_consent_rel` WRITE;
4+
INSERT INTO `candidate_consent_rel` (`CandidateID`, `ConsentID`, `Status`, `DateGiven`, `DateWithdrawn`) VALUES ('587630', 1, 'no', '2015-12-31', '2015-12-31');
5+
INSERT INTO `candidate_consent_rel` (`CandidateID`, `ConsentID`, `Status`, `DateGiven`, `DateWithdrawn`) VALUES ('300001', 1, 'yes', '2015-12-31', NULL);
46
UNLOCK TABLES;
7+
INSERT INTO `candidate_consent_rel` (`CandidateID`, `ConsentID`, `Status`, `DateGiven`, `DateWithdrawn`) VALUES ('300005', 1, 'yes', '2015-10-30', NULL);
58
SET FOREIGN_KEY_CHECKS=1;

0 commit comments

Comments
 (0)