diff --git a/store/datastore/sql/postgres/files/counts.sql b/store/datastore/sql/postgres/files/counts.sql index 469438f03..29948d932 100644 --- a/store/datastore/sql/postgres/files/counts.sql +++ b/store/datastore/sql/postgres/files/counts.sql @@ -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 diff --git a/store/datastore/sql/postgres/sql_gen.go b/store/datastore/sql/postgres/sql_gen.go index 6f3db3806..8298055fc 100644 --- a/store/datastore/sql/postgres/sql_gen.go +++ b/store/datastore/sql/postgres/sql_gen.go @@ -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 = `