Skip to content

Commit

Permalink
add tenant to events
Browse files Browse the repository at this point in the history
  • Loading branch information
gewo committed Dec 10, 2015
1 parent db48170 commit f94de24
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type Event struct {
Fields string `sql:"size:1024" json:"fields"`
Tags string `sql:"size:1024" json:"tags"`
Note string `sql:"size:1024" json:"note"`
Tenant string `sql:"size:30" json:"-"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt time.Time `json:"-"`
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# run tests: docker-compose run --rm web ./test
postgres:
image: postgres:9.4.4
environment:
Expand Down
16 changes: 16 additions & 0 deletions test
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -x

cd /go/src/app
godep restore

go get github.com/axw/gocov/gocov
go get github.com/mattn/goveralls
if ! go get code.google.com/p/go.tools/cmd/cover; then
go get golang.org/x/tools/cmd/cover
fi

go install
# $GOPATH/bin/goveralls
go test

0 comments on commit f94de24

Please sign in to comment.