mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
re-format counter update for postgres
This commit is contained in:
parent
f16dfaa9f0
commit
110c036e4e
2 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
-- name: repo-update-counter
|
||||
|
||||
UPDATE repos SET repo_counter = ?
|
||||
WHERE repo_counter = ?
|
||||
AND repo_id = ?
|
||||
UPDATE repos SET repo_counter = $1
|
||||
WHERE repo_counter = $2
|
||||
AND repo_id = $3
|
||||
|
|
|
@ -251,9 +251,9 @@ DELETE FROM registry WHERE registry_id = $1
|
|||
`
|
||||
|
||||
var repoUpdateCounter = `
|
||||
UPDATE repos SET repo_counter = ?
|
||||
WHERE repo_counter = ?
|
||||
AND repo_id = ?
|
||||
UPDATE repos SET repo_counter = $1
|
||||
WHERE repo_counter = $2
|
||||
AND repo_id = $3
|
||||
`
|
||||
|
||||
var secretFindRepo = `
|
||||
|
|
Loading…
Reference in a new issue