From f2d57a86fe39d0c242bef40b4753d73b9ccb1121 Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 21 Apr 2022 15:46:34 +0000 Subject: [PATCH] Remove requirement for no two of the same test to be on the same day --- utility/db/initDb.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utility/db/initDb.js b/utility/db/initDb.js index 77ded51..8aaee09 100644 --- a/utility/db/initDb.js +++ b/utility/db/initDb.js @@ -105,8 +105,7 @@ tableCreate.set('test', ` testId varchar(36) NOT NULL PRIMARY KEY, testTemplateId varchar(36) NOT NULL , classId varchar(36) NOT NULL , - testDate date NOT NULL , - CONSTRAINT Unq_test UNIQUE ( testTemplateId, classId, testDate ) + testDate date NOT NULL ); `);