Fixing nil value in newly added column

This commit is contained in:
Laszlo Fogas
2019-07-15 14:13:49 +02:00
parent f0c641fa9d
commit fb6c2f1c20
13 changed files with 61 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ SELECT
,repo_gated
,repo_visibility
,repo_counter
,repo_fallback
FROM repos
INNER JOIN perms ON perms.perm_repo_id = repos.repo_id
WHERE perms.perm_user_id = $1
@@ -60,7 +61,8 @@ INSERT INTO repos (
,repo_gated
,repo_visibility
,repo_counter
) VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21,$22)
,repo_fallback
) VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21,$22,$23)
ON CONFLICT (repo_full_name) DO NOTHING
-- name: repo-delete