aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/query.sql
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-08 21:17:13 +0900
committernsfisis <nsfisis@gmail.com>2024-08-08 21:17:13 +0900
commita100dc8ba76aaeda2229940c1743c33cc0ef84b5 (patch)
treee2e48d8d92e2601d65e3ce7d794d8727026c14e0 /backend/query.sql
parentbb62b6ff19d9f8008458d1c0ad0b8b76090f091e (diff)
parent3b13a61123becc63823ab0c0941aaff2048b020e (diff)
downloadiosdc-japan-2024-albatross-a100dc8ba76aaeda2229940c1743c33cc0ef84b5.tar.gz
iosdc-japan-2024-albatross-a100dc8ba76aaeda2229940c1743c33cc0ef84b5.tar.zst
iosdc-japan-2024-albatross-a100dc8ba76aaeda2229940c1743c33cc0ef84b5.zip
Merge branch 'feat/code-hash'
Diffstat (limited to 'backend/query.sql')
-rw-r--r--backend/query.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/query.sql b/backend/query.sql
index e767746..f0e4034 100644
--- a/backend/query.sql
+++ b/backend/query.sql
@@ -59,8 +59,8 @@ SET
WHERE game_id = $1;
-- name: CreateSubmission :one
-INSERT INTO submissions (game_id, user_id, code, code_size)
-VALUES ($1, $2, $3, $4)
+INSERT INTO submissions (game_id, user_id, code, code_size, code_hash)
+VALUES ($1, $2, $3, $4, $5)
RETURNING submission_id;
-- name: ListTestcasesByGameID :many