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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/database/install.sh +19 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fefb2ae03be0835daa16c44b8f82c612f53c0034
4
- data.tar.gz: 740229a69e3465799519075936c3e3f4721d548f
3
+ metadata.gz: f5fc75df99e4a24d8a13b7006e18b3bb6d657b60
4
+ data.tar.gz: 94164d10062aaf22d1c3f605f6f8d374b15214aa
5
5
  SHA512:
6
- metadata.gz: 9ae6added387e915c2b9bb1eb71ab03fca5c9ee46d70200899ec63df08faba2be3606ef768683d317193a470c693181369d3e4222e49121198caa9c7387edc1d
7
- data.tar.gz: 1002b2db36b69ea7e710439dc037aa0d13576bf68bed73d0b7d501941186b362411bc82a18ce1eb3a7ad22c071ddb39ee973057ae88ef61591b32e829c412d39
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
- psql $database -f database/extensions.sql
66
+ base=$(script_dir)
67
+ psql $database -f $base/extensions.sql
62
68
  }
63
69
 
64
70
  function create-table {
65
- psql $database -f database/table/events-table.sql
71
+ base=$(script_dir)
72
+ psql $database -f $base/table/events-table.sql
66
73
  }
67
74
 
68
75
  function create-functions {
69
- psql $database -f database/functions/category.sql
70
- psql $database -f database/functions/stream-version.sql
71
- psql $database -f database/functions/write-event.sql
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
- psql $database -f database/indexes/events-id.sql
76
- psql $database -f database/indexes/events-category-global-position.sql
77
- psql $database -f database/indexes/events-category.sql
78
- psql $database -f database/indexes/events-stream-name.sql
79
- psql $database -f database/indexes/events-stream-name-position-uniq.sql
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-event_source-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0.0
4
+ version: 0.17.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project