Merge remote-tracking branch 'origin'
This commit is contained in:
commit
9cd328abcd
9 changed files with 15 additions and 20 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM alpine:3.6
|
||||
FROM alpine:3.7
|
||||
|
||||
RUN apk add -U --no-cache ca-certificates
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -28,7 +28,7 @@ const (
|
|||
hookPullRequest = "pull_request"
|
||||
|
||||
actionOpen = "opened"
|
||||
actionSync = "synchronize"
|
||||
actionSync = "synchronized"
|
||||
|
||||
stateOpen = "open"
|
||||
|
||||
|
|
|
@ -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)
|
||||
// }
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
;
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
;
|
Loading…
Reference in a new issue