mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-19 13:22:24 +00:00
use boolean to filter active flag, postres change
This commit is contained in:
@@ -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 = `
|
||||
|
Reference in New Issue
Block a user