From 1b1e3b8bec87bcadb7507e4c8c900d539c6c5b31 Mon Sep 17 00:00:00 2001 From: Matthew Bellew Date: Tue, 27 Sep 2022 12:01:18 -0700 Subject: [PATCH] participantid, sequencenum, lsid should all be NOT NULL in the provisioned tables. --- .../src/org/labkey/study/model/DatasetDomainKind.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/study/src/org/labkey/study/model/DatasetDomainKind.java b/study/src/org/labkey/study/model/DatasetDomainKind.java index adf1d0b68a0..0268268770a 100644 --- a/study/src/org/labkey/study/model/DatasetDomainKind.java +++ b/study/src/org/labkey/study/model/DatasetDomainKind.java @@ -118,8 +118,8 @@ public abstract class DatasetDomainKind extends AbstractDomainKind(Arrays.asList( new PropertyStorageSpec(DSROWID, JdbcType.BIGINT, 0, PropertyStorageSpec.Special.PrimaryKeyNonClustered, false, true, null), - new PropertyStorageSpec(PARTICIPANTID, JdbcType.VARCHAR, 32), - new PropertyStorageSpec(LSID, JdbcType.VARCHAR, 200), - new PropertyStorageSpec(SEQUENCENUM, JdbcType.DECIMAL), + new PropertyStorageSpec(PARTICIPANTID, JdbcType.VARCHAR, 32).setNullable(false), + new PropertyStorageSpec(LSID, JdbcType.VARCHAR, 200).setNullable(false), + new PropertyStorageSpec(SEQUENCENUM, JdbcType.DECIMAL).setNullable(false), new PropertyStorageSpec(SOURCELSID, JdbcType.VARCHAR, 200), new PropertyStorageSpec(_KEY, JdbcType.VARCHAR, 200), new PropertyStorageSpec(QCSTATE, JdbcType.INTEGER),