service fix

pull/41/head^2 v0.37
Hunter Long 2018-08-13 09:35:38 -07:00
parent d5738db0b7
commit bcbb58bec6
6 changed files with 9 additions and 3 deletions

View File

@ -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=

View File

@ -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 && \

View File

@ -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 {

View File

@ -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;

View File

@ -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;

View File

@ -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;