mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-02 08:19:07 +00:00
alternate build count strategy for postgres
This commit is contained in:
@@ -11,5 +11,4 @@ WHERE repo_active = true
|
||||
|
||||
-- name: count-builds
|
||||
|
||||
SELECT reltuples
|
||||
FROM pg_class WHERE relname = 'builds'
|
||||
SELECT currval('builds_build_id_seq');
|
||||
|
||||
Reference in New Issue
Block a user