mirror of https://github.com/statping/statping
parent
d5738db0b7
commit
bcbb58bec6
|
@ -18,7 +18,7 @@ services:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- VERSION=0.36
|
- VERSION=0.37
|
||||||
- DB_HOST=localhost
|
- DB_HOST=localhost
|
||||||
- DB_USER=travis
|
- DB_USER=travis
|
||||||
- DB_PASS=
|
- DB_PASS=
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
ENV VERSION=v0.36
|
ENV VERSION=v0.37
|
||||||
|
|
||||||
RUN apk --no-cache add libstdc++ ca-certificates
|
RUN apk --no-cache add libstdc++ ca-certificates
|
||||||
RUN wget -q https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-alpine.tar.gz && \
|
RUN wget -q https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-alpine.tar.gz && \
|
||||||
|
|
|
@ -38,7 +38,7 @@ func SelectAllServices() ([]*Service, error) {
|
||||||
col := serviceCol().Find()
|
col := serviceCol().Find()
|
||||||
err := col.All(&services)
|
err := col.All(&services)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Log(3, err)
|
utils.Log(3, fmt.Sprintf("service error: %v", err))
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
for _, s := range services {
|
for _, s := range services {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
=========================================== 1534178020
|
||||||
|
UPDATE services SET order_id=0 WHERE order_id IS NULL;
|
||||||
=========================================== 1532068515
|
=========================================== 1532068515
|
||||||
ALTER TABLE services ALTER COLUMN order_id integer DEFAULT 0;
|
ALTER TABLE services ALTER COLUMN order_id integer DEFAULT 0;
|
||||||
ALTER TABLE services ADD COLUMN timeout integer DEFAULT 30;
|
ALTER TABLE services ADD COLUMN timeout integer DEFAULT 30;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
=========================================== 1534178020
|
||||||
|
UPDATE services SET order_id=0 WHERE order_id IS NULL;
|
||||||
=========================================== 1532068515
|
=========================================== 1532068515
|
||||||
ALTER TABLE services ALTER COLUMN order_id integer DEFAULT 0;
|
ALTER TABLE services ALTER COLUMN order_id integer DEFAULT 0;
|
||||||
ALTER TABLE services ADD COLUMN timeout integer DEFAULT 30;
|
ALTER TABLE services ADD COLUMN timeout integer DEFAULT 30;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
=========================================== 1534178020
|
||||||
|
UPDATE services SET order_id=0 WHERE order_id IS NULL;
|
||||||
=========================================== 1532068515
|
=========================================== 1532068515
|
||||||
ALTER TABLE services ALTER COLUMN order_id integer DEFAULT 0;
|
ALTER TABLE services ALTER COLUMN order_id integer DEFAULT 0;
|
||||||
ALTER TABLE services ADD COLUMN timeout integer DEFAULT 30;
|
ALTER TABLE services ADD COLUMN timeout integer DEFAULT 30;
|
||||||
|
|
Loading…
Reference in New Issue