evt-event_source-postgres 0.17.0.0 → 0.17.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/database/install.sh +19 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5fc75df99e4a24d8a13b7006e18b3bb6d657b60
|
4
|
+
data.tar.gz: 94164d10062aaf22d1c3f605f6f8d374b15214aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c11b93e1272c2aa80aada7d0b2155f1eb3234372f0102eb7f38acc4cc85a4cca5822f53a54d6b8ca4bfb8014ecbb0e6c120f537b3e6a123f376950c535fc19fd
|
7
|
+
data.tar.gz: 3f03cd4a03a74f963e36e9b7b65d4b3e36ab3478f8265125607dd01ae6cd826f089a75405fe1b7846c9ef211241620f7ccbcb68f72284893ecbfb4982b33c578
|
data/database/install.sh
CHANGED
@@ -57,26 +57,35 @@ function create-database {
|
|
57
57
|
echo
|
58
58
|
}
|
59
59
|
|
60
|
+
function script_dir {
|
61
|
+
val="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
62
|
+
echo "$val"
|
63
|
+
}
|
64
|
+
|
60
65
|
function create-extensions {
|
61
|
-
|
66
|
+
base=$(script_dir)
|
67
|
+
psql $database -f $base/extensions.sql
|
62
68
|
}
|
63
69
|
|
64
70
|
function create-table {
|
65
|
-
|
71
|
+
base=$(script_dir)
|
72
|
+
psql $database -f $base/table/events-table.sql
|
66
73
|
}
|
67
74
|
|
68
75
|
function create-functions {
|
69
|
-
|
70
|
-
psql $database -f
|
71
|
-
psql $database -f
|
76
|
+
base=$(script_dir)
|
77
|
+
psql $database -f $base/functions/category.sql
|
78
|
+
psql $database -f $base/functions/stream-version.sql
|
79
|
+
psql $database -f $base/functions/write-event.sql
|
72
80
|
}
|
73
81
|
|
74
82
|
function create-indexes {
|
75
|
-
|
76
|
-
psql $database -f
|
77
|
-
psql $database -f
|
78
|
-
psql $database -f
|
79
|
-
psql $database -f
|
83
|
+
base=$(script_dir)
|
84
|
+
psql $database -f $base/indexes/events-id.sql
|
85
|
+
psql $database -f $base/indexes/events-category-global-position.sql
|
86
|
+
psql $database -f $base/indexes/events-category.sql
|
87
|
+
psql $database -f $base/indexes/events-stream-name.sql
|
88
|
+
psql $database -f $base/indexes/events-stream-name-position-uniq.sql
|
80
89
|
}
|
81
90
|
|
82
91
|
create-user
|