participantid, sequencenum, lsid should be NOT NULL#3723
participantid, sequencenum, lsid should be NOT NULL#3723labkey-matthewb wants to merge 1 commit intodevelopfrom
Conversation
|
Agreed they shouldn't be null. What happens to existing datasets? Do we need to get this applied to them, and/or somehow fill in existing rows that have nulls? |
|
The good news is we enforce that there are no nulls (barring bugs), and things blow up if NULLs get in there (updateParticipantVisits() etc). I don't know if we need to do anything with existing datasets. This will enforce fast-fail if we have any new (or obscure) bugs. |
|
Hmm, teamcity/github seem to be having some syncing troubles. |
|
I'm always a bit paranoid about having tables in a variety of states depending on when they were created. @labkey-adam any strong feelings either way in this case? |
|
I agree... I certainly prefer proactive upgrades that ensure consistency |
|
@labkey-matthewb I propose that we add these constraints to existing tables at upgrade time, but not try to handle problematic rows in the tables. We can discuss if that represents a sizable chunk of work. |
Rationale
These were all NOT NULL as designed in the original study.data table. This constraint seems to have been lost over time.
Related Pull Requests
Changes