diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-07 22:44:08 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-08 04:02:37 +0900 |
| commit | d799993a4fe0d05aa72c9a48d4a76c6db2240038 (patch) | |
| tree | 5cea8c2a06029cbed9b4ed642545567a899c63aa /backend/db | |
| parent | 963292574fd72ec62ebc75c308f1275de531a2e9 (diff) | |
| download | phperkaigi-2025-albatross-d799993a4fe0d05aa72c9a48d4a76c6db2240038.tar.gz phperkaigi-2025-albatross-d799993a4fe0d05aa72c9a48d4a76c6db2240038.tar.zst phperkaigi-2025-albatross-d799993a4fe0d05aa72c9a48d4a76c6db2240038.zip | |
feat(backend): make testcase_executions.testcase_id non-null
Diffstat (limited to 'backend/db')
| -rw-r--r-- | backend/db/models.go | 2 | ||||
| -rw-r--r-- | backend/db/query.sql.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/db/models.go b/backend/db/models.go index 431d860..126b5f2 100644 --- a/backend/db/models.go +++ b/backend/db/models.go @@ -49,7 +49,7 @@ type Testcase struct { type TestcaseExecution struct { TestcaseExecutionID int32 SubmissionID int32 - TestcaseID *int32 + TestcaseID int32 Status string Stdout string Stderr string diff --git a/backend/db/query.sql.go b/backend/db/query.sql.go index 18acfda..eefa8a0 100644 --- a/backend/db/query.sql.go +++ b/backend/db/query.sql.go @@ -43,7 +43,7 @@ VALUES ($1, $2, $3, $4, $5) type CreateTestcaseExecutionParams struct { SubmissionID int32 - TestcaseID *int32 + TestcaseID int32 Status string Stdout string Stderr string |
