aces / Loris

LORIS is a web-accessible database solution for longitudinal multi-site studies.
GNU General Public License v3.0
142 stars 172 forks source link

Make ProjectID not nullable #7524

Closed driusan closed 1 year ago

driusan commented 3 years ago

In the candidate table the RegistrationCentreID is NOT NULL, but the RegistrationProjectID is nullable. All LORIS instances should have at least one project set up (the default LORIS install has one named "LORIS"), and as a result it would make more sense for the ProjectID to also be not nullable. The nullability takes from the time before there was a default project.

Similarly, in the session table the ProjectID should be NOT NULL.

ridz1208 commented 1 year ago

done