Merge remote-tracking branch 'origin'

This commit is contained in:
Brad Rydzewski 2018-04-01 11:55:13 -07:00
commit 9cd328abcd
9 changed files with 15 additions and 20 deletions

View file

@ -1,4 +1,4 @@
FROM alpine:3.6
FROM alpine:3.7
RUN apk add -U --no-cache ca-certificates

View file

@ -1,4 +1,4 @@
FROM alpine:3.6
FROM alpine:3.7
EXPOSE 8000 9000 80 443
RUN apk add -U --no-cache ca-certificates

View file

@ -28,7 +28,7 @@ const (
hookPullRequest = "pull_request"
actionOpen = "opened"
actionSync = "synchronize"
actionSync = "synchronized"
stateOpen = "open"

View file

@ -186,10 +186,3 @@ func Load(mux *httptreemux.ContextMux, middleware ...gin.HandlerFunc) http.Handl
return e
}
// type FileHandler interface {
// Index(res http.ResponseWriter, data interface{}) error
// Login(res http.ResponseWriter, data interface{}) error
// Error(res http.ResponseWriter, data interface{}) error
// Asset(res http.ResponseWriter, req *http.Request)
// }

View file

@ -1,6 +1,6 @@
-- name: alter-table-add-repo-visibility
ALTER TABLE repos ADD COLUMN repo_visibility VARCHAR(50)
ALTER TABLE repos ADD COLUMN repo_visibility VARCHAR(50);
-- name: update-table-set-repo-visibility
@ -8,4 +8,4 @@ UPDATE repos
SET repo_visibility = (CASE
WHEN repo_private = false THEN 'public'
ELSE 'private'
END)
END);

View file

@ -8,9 +8,10 @@ UPDATE repos SET repo_counter = (
SELECT max(build_number)
FROM builds
WHERE builds.build_repo_id = repos.repo_id
)
);
-- name: update-table-set-repo-seq-default
UPDATE repos SET repo_counter = 0
WHERE repo_counter IS NULL
;

View file

@ -1,7 +1,7 @@
-- name: alter-table-add-repo-active
ALTER TABLE repos ADD COLUMN repo_active BOOLEAN
ALTER TABLE repos ADD COLUMN repo_active BOOLEAN;
-- name: update-table-set-repo-active
UPDATE repos SET repo_active = true
UPDATE repos SET repo_active = true;

View file

@ -4,4 +4,4 @@ ALTER TABLE users ADD COLUMN user_synced INTEGER;
-- name: update-table-set-user-synced
UPDATE users SET user_synced = 0
UPDATE users SET user_synced = 0;

View file

@ -1,18 +1,18 @@
-- name: alter-table-add-file-pid
ALTER TABLE files ADD COLUMN file_pid INTEGER
ALTER TABLE files ADD COLUMN file_pid INTEGER;
-- name: alter-table-add-file-meta-passed
ALTER TABLE files ADD COLUMN file_meta_passed INTEGER
ALTER TABLE files ADD COLUMN file_meta_passed INTEGER;
-- name: alter-table-add-file-meta-failed
ALTER TABLE files ADD COLUMN file_meta_failed INTEGER
ALTER TABLE files ADD COLUMN file_meta_failed INTEGER;
-- name: alter-table-add-file-meta-skipped
ALTER TABLE files ADD COLUMN file_meta_skipped INTEGER
ALTER TABLE files ADD COLUMN file_meta_skipped INTEGER;
-- name: alter-table-update-file-meta
@ -20,3 +20,4 @@ UPDATE files SET
file_meta_passed=0
,file_meta_failed=0
,file_meta_skipped=0
;