use boolean to filter active flag, postres change

This commit is contained in:
Brad Rydzewski 2017-07-25 15:42:11 -04:00
parent 005a28a638
commit c22dc6e5fa
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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 = `