1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 22:59:28 +00:00

Mark storage should use unsigned ints

This commit is contained in:
2022-04-21 13:11:48 +00:00
parent 4b9a726cdf
commit 4cb10d4e2d

View File

@@ -69,7 +69,7 @@ tableCreate.set('testTemplate', `
testTemplateId varchar(36) NOT NULL PRIMARY KEY,
accountId varchar(36) NOT NULL ,
name varchar(100) NOT NULL ,
maxMark int NOT NULL,
maxMark int UNSIGNED NOT NULL,
gradeBoundaries longtext
);
`);
@@ -116,7 +116,7 @@ tableCreate.set('testResult', `
studentId varchar(36) NOT NULL ,
testId varchar(36) NOT NULL ,
accountId varchar(36) NOT NULL ,
mark int NOT NULL ,
mark int UNSIGNED NOT NULL ,
time datetime NOT NULL ,
CONSTRAINT Unq_testResult UNIQUE ( studentId, testId )
);