mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
use boolean to filter active flag, postres change
This commit is contained in:
parent
005a28a638
commit
c22dc6e5fa
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ FROM pg_class WHERE relname = 'users'
|
|||
|
||||
SELECT count(1)
|
||||
FROM repos
|
||||
WHERE repo_active = 1
|
||||
WHERE repo_active = true
|
||||
|
||||
-- name: count-builds
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ FROM pg_class WHERE relname = 'users'
|
|||
var countRepos = `
|
||||
SELECT count(1)
|
||||
FROM repos
|
||||
WHERE repo_active = 1
|
||||
WHERE repo_active = true
|
||||
`
|
||||
|
||||
var countBuilds = `
|
||||
|
|
Loading…
Reference in a new issue