Skip to content

Commit 1d34c2d

Browse files
author
Sasha Baranov
committed
Add storage class
1 parent 90a96d6 commit 1d34c2d

7 files changed

+561
-10
lines changed

Gopkg.toml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
2+
# Gopkg.toml example
3+
#
4+
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
5+
# for detailed Gopkg.toml documentation.
6+
#
7+
# required = ["github.com/user/thing/cmd/thing"]
8+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
9+
#
10+
# [[constraint]]
11+
# name = "github.com/user/project"
12+
# version = "1.0.0"
13+
#
14+
# [[constraint]]
15+
# name = "github.com/user/project2"
16+
# branch = "dev"
17+
# source = "github.com/myfork/project2"
18+
#
19+
# [[override]]
20+
# name = "github.com/x/y"
21+
# version = "2.4.0"
22+
23+
24+
[[constraint]]
25+
name = "github.com/dgrijalva/jwt-go"
26+
version = "3.0.0"
27+
28+
[[constraint]]
29+
branch = "master"
30+
name = "github.com/golang/protobuf"
31+
32+
[[constraint]]
33+
branch = "master"
34+
name = "github.com/grpc-ecosystem/go-grpc-middleware"
35+
36+
[[constraint]]
37+
branch = "master"
38+
name = "github.com/lib/pq"
39+
40+
[[constraint]]
41+
name = "github.com/sirupsen/logrus"
42+
version = "1.0.3"
43+
44+
[[constraint]]
45+
branch = "master"
46+
name = "golang.org/x/net"
47+
48+
[[constraint]]
49+
name = "google.golang.org/grpc"
50+
version = "1.6.0"
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
DROP TABLE IF EXISTS points;
2-
DROP TYPE point_status;
+6-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
CREATE TYPE point_status AS ENUM ('pending', 'pulled', 'running', 'failed', 'completed');
2-
3-
41
CREATE TABLE points (
5-
id SERIAL NOT NULL,
6-
project VARCHAR(40),
7-
status point_status,
2+
id SERIAL NOT NULL,
3+
project VARCHAR(40),
4+
status SMALLINT,
85

9-
coordinate TEXT,
10-
metric_value DOUBLE PRECISION,
11-
metadata TEXT,
6+
coordinate TEXT NOT NULL DEFAULT '',
7+
metric_value TEXT NOT NULL DEFAULT '',
8+
metadata TEXT NOT NULL DEFAULT '',
129

1310
PRIMARY KEY (project, id)
1411
);

0 commit comments

Comments
 (0)