| | 10 | |
| | 11 | |
| | 12 | |
| | 13 | compare -- diff bbmri_29_march.mysql ~/Desktop/bbmri_gcc_22march_backup.mysql : except from the capitalized constraint in every CONSTRAINT, there are differences that may produce this problem : |
| | 14 | |
| | 15 | added constrain in Measurement entity : |
| | 16 | |
| | 17 | < KEY !`targettypeAllowedForRelation` (!`targettypeAllowedForRelation`), |
| | 18 | |
| | 19 | '''< CONSTRAINT !`measurement_ibfk_3` FOREIGN KEY (!`targettypeAllowedForRelation`) REFERENCES !`molgenisentity` (!`id`),''' |
| | 20 | |
| | 21 | < CONSTRAINT !`measurement_ibfk_1` FOREIGN KEY (!`id`) REFERENCES !`observablefeature` (!`id`) ON DELETE CASCADE, |
| | 22 | |
| | 23 | < CONSTRAINT !`measurement_ibfk_2` FOREIGN KEY (!`unit`) REFERENCES !`ontologyterm` (!`id`) |
| | 24 | |
| | 25 | --- |
| | 26 | |
| | 27 | > CONSTRAINT !`Measurement_ibfk_1` FOREIGN KEY (!`id`) REFERENCES !`ObservableFeature` (!`id`) ON DELETE CASCADE, |
| | 28 | |
| | 29 | > CONSTRAINT !`Measurement_ibfk_2` FOREIGN KEY (!`unit`) REFERENCES !`OntologyTerm` (!`id`) |
| | 30 | |
| | 31 | ----------------------------removed constraint from entity 812,813c795,797< UNIQUE KEY !`name` (!`name`),< CONSTRAINT !`observationtarget_ibfk_1` FOREIGN KEY (!`id`) REFERENCES !`observationelement` (!`id`) ON DELETE CASCADE---> UNIQUE KEY !`Investigation_name` (!`Investigation`,!`name`),> CONSTRAINT !`ObservationTarget_ibfk_1` FOREIGN KEY (!`id`) REFERENCES !`ObservationElement` (!`id`) ON DELETE CASCADE,> CONSTRAINT !`ObservationTarget_ibfk_2` FOREIGN KEY (!`Investigation`) REFERENCES !`Investigation` (!`id`) |