Commit graph

135 commits

Author SHA1 Message Date
mhmxs
53258bf989 Format source code 2019-09-14 14:21:16 +02:00
mhmxs
fd361ddf2a Create separate Go file for build status updates 2019-09-14 14:20:16 +02:00
Laszlo Fogas
630c383181 Project is renamed to Woodpecker 2019-08-27 13:07:19 +02:00
Laszlo Fogas
fb6c2f1c20 Fixing nil value in newly added column 2019-07-15 14:26:00 +02:00
Laszlo Fogas
8d79f8671e Fallback to default config. Allows incremental rollout of custom-path 2019-06-25 13:45:43 +02:00
Laszlo Fogas
be0d1d73fb Task dependencies to survive restarts 2019-06-25 12:21:09 +02:00
Laszlo Fogas
806249ec16 Migrating build configs to the new schema 2019-06-19 16:13:09 +02:00
Laszlo Fogas
a18b7bb46e SQL changes for Postgres and MySQL 2019-06-14 09:55:40 +02:00
Laszlo Fogas
f9c5fcec0d N:N relationship between build and config. Restarts work 2019-06-11 10:50:50 +02:00
Laszlo Fogas
3fe710bbe4 1:n relationship for build-config 2019-06-07 10:40:16 +02:00
Laszlo Fogas
ddabcde3e3 Factored to a better place 2019-06-01 12:52:30 +02:00
Laszlo Fogas
36b356a071 This should have been generated somehow 2019-05-30 14:31:18 +02:00
Laszlo Fogas
16d68eddbf Was throwing: currval of sequence builds_build_id_seq is not yet defined in this session 2019-05-30 14:06:49 +02:00
Laszlo Fogas
ca5817ffc2 Renamed package 2019-04-04 20:51:20 +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
4063d29b44 fix failing build count test 2018-05-02 09:59:05 -07:00
Brad Rydzewski
9ffd5ad9e8 alternate build count strategy for postgres 2018-05-02 09:45:05 -07:00
Brad Rydzewski
8a65cf91a9
Merge pull request #2313 from Valeran86/bugix/postgres-semicolon-in-scripts [ci skip]
fix missing semicolon in Postgres script's files
2018-04-01 11:38:00 -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
Jordan Brockopp
af76d46b53 add page param for getting build list with offset 2018-02-02 13:03:40 -06:00
Александр Ангин
b892f566e5 fix missing semicolon in Postgres script's files 2018-01-22 10:40:11 +03:00
Brad Rydzewski
bb8c569249 add healthz endpoint to server 2017-10-05 14:17:27 -07: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
d5200ad8b3 improve flush capability during sync 2017-07-16 13:37:16 -04:00
Brad Rydzewski
587b07c69b sync working with postgres and mysql 2017-07-15 12:51:02 -04:00
Brad Rydzewski
35e0ee2e5f implement sync logic 2017-07-14 15:58:38 -04:00
Brad Rydzewski
37eb406092 update default visibility migration 2017-07-12 15:25:42 -04:00
Brad Rydzewski
6806883a0d fix mysql migration value 2017-07-12 15:22:49 -04:00
Brad Rydzewski
911e5f41a3 doh. fix migration for sqlite 2017-06-01 14:47:06 +02:00
Brad Rydzewski
860c611a37 update migration 2017-06-01 14:30:49 +02:00
Brad Rydzewski
ee54698c62 add migration function to remove null repo counters 2017-05-25 12:25:16 +02:00
Brad Rydzewski
08b320e365 update unit tests 2017-05-23 17:53:40 +02: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
9ed9f8f1c9 change repo_visibility to text 2017-05-22 23:16:42 +02:00
Brad Rydzewski
c64a244c27 add visibility database field 2017-05-22 23:11:29 +02:00
Joachim Hill-Grannec
52ee6fa5be update varchar to 255 for the unique value to work for the migrations table. 2017-05-20 15:46:49 -04:00
Brad Rydzewski
298d78e370 bump column size for registry secret [ci skip] 2017-05-19 18:15:57 +02:00
Brad Rydzewski
28edaccf30 update generated sql code 2017-05-19 17:55:32 +02:00
Brad Rydzewski
3e45431aa8 sort by proc_id asc 2017-05-19 17:54:13 +02:00
Brad Rydzewski
a05cdafd92 add mysql and postgres impls 2017-05-19 17:51:28 +02:00
Brad Rydzewski
3d2753fd59 migrate seq number 2017-05-18 02:18:41 +02:00