Laszlo Fogas
a18b7bb46e
SQL changes for Postgres and MySQL
2019-06-14 09:55:40 +02:00
Laszlo Fogas
36b356a071
This should have been generated somehow
2019-05-30 14:31:18 +02:00
Niall Sheridan
4949047575
Don't return extra columns in result set
...
Since commit 360708e93d
the feed-latest-build query has returned extra columns in the results, causing log messages like the following:
```
meddler.Targets: column [build_repo_id] not found in struct
meddler.Targets: column [build_id] not found in struct
meddler.WriteTargets: column [build_repo_id] not found in struct
meddler.WriteTargets: column [build_id] not found in struct
```
This is a result of the optimised Postgres query including the `build_repo_id` and `build_id` terms, where previously they were not inclued.
This PR rewrites the query slightly to produce the expected result set (i.e. without the `build_repo_id` and `build_id` columns). As a side-effect it also looks similar to the original query.
Signed-off-by: Niall Sheridan <nsheridan@squarespace.com>
2018-11-14 11:22:28 +00:00
Brad Rydzewski
360708e93d
optimize postgres query
2018-11-08 22:42:32 -08:00
Brad Rydzewski
9ffd5ad9e8
alternate build count strategy for postgres
2018-05-02 09:45:05 -07:00
Thomas Boerger
7f49e69607
Just fixed format with go fmt ./...
2018-03-21 14:02:17 +01:00
Brad Rydzewski
580fe9abb7
add apache license header to files
2018-02-19 14:24:10 -08:00
Brad Rydzewski
60cd607450
capture file metadata
2017-08-02 16:04:00 -04:00
Brad Rydzewski
bcdd5c9d06
implement file endpoints
2017-07-27 13:06:24 -04:00
Brad Rydzewski
c22dc6e5fa
use boolean to filter active flag, postres change
2017-07-25 15:42:11 -04:00
Brad Rydzewski
005a28a638
fix postgres repo count
2017-07-25 15:37:58 -04:00
Brad Rydzewski
02a8a2a31f
bump version; fix repo count metrics
2017-07-25 15:32:22 -04:00
Brad Rydzewski
15d92c5fa3
read user and log sql queries from file
2017-07-20 16:34:52 -04:00
Brad Rydzewski
587b07c69b
sync working with postgres and mysql
2017-07-15 12:51:02 -04:00
Brad Rydzewski
3f45889ead
fix merge conflicts
2017-05-23 14:43:50 +02:00
Brad Rydzewski
110c036e4e
re-format counter update for postgres
2017-05-23 14:34:24 +02:00
Brad Rydzewski
f16dfaa9f0
increment build from counter
2017-05-23 12:43:58 +02:00
Brad Rydzewski
28edaccf30
update generated sql code
2017-05-19 17:55:32 +02:00
Mikkel Oscar Lyderik Larsen
97946dad38
Order procs by proc_pid
2017-05-09 21:20:33 +02:00
Brad Rydzewski
3a64aa4cf2
simplify gating logic
2017-05-05 20:05:42 +02:00
Brad Rydzewski
4569b60f09
persist and compare yaml for gating
2017-05-05 18:59:37 +02:00
Brad Rydzewski
2f579e4b7d
setup store in main()
2017-05-03 23:25:33 +02:00
Brad Rydzewski
e172de592f
restore queue on restart
2017-04-14 13:32:36 +02:00
Brad Rydzewski
8348c858ba
wip enable pluggable secret and registry backends
2017-04-11 19:06:45 +02:00
Brad Rydzewski
55d4ccd64e
add registry management
2017-04-06 21:51:01 +09:00
Brad Rydzewski
76006d28ac
restart build by clearing prior procs and logs
2017-04-04 19:50:15 +09:00
Brad Rydzewski
6c11444de0
agent update build steps
2017-04-01 20:17:04 +09:00
Brad Rydzewski
aa3fc5123f
enable postgres
2017-03-28 18:13:13 +09:00