From c22dc6e5fa1d6b96b4a3e869978131cbff0cb9d7 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 25 Jul 2017 15:42:11 -0400 Subject: [PATCH] use boolean to filter active flag, postres change --- store/datastore/sql/postgres/files/counts.sql | 2 +- store/datastore/sql/postgres/sql_gen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = `