evt-message_store-postgres-database 0.7.1.0 → 0.7.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/database/rename-updated-to-recorded.sh +30 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 839153cc2e340ef66f061dc5697d51a923a65a9ea2902ff9795fc21ac50c6093
|
4
|
+
data.tar.gz: b9af3843f0355c4766a1aa7120bb77c7b262a255b0883f7ffdedfe468ef87010
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9e6598fd6e561e3b41ca3a1c1d110a82079308e1eb9ed24c1696cdb304a507ba44c4acaf6ae814fa00ed9015c58f1139ec7dc48cf67edfc87be6a5168da2f4e
|
7
|
+
data.tar.gz: ea289e0e42a7efb45ca1cfad1bb2b7b36e395f41157b1bcb99d94c945c95d0eb618406e0e61f92cb82c2043a98a8ffb09042c1eb78adc760bc7ad054de4bc15c
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
set -e
|
4
|
+
|
5
|
+
echo
|
6
|
+
|
7
|
+
default_name=message_store
|
8
|
+
|
9
|
+
if [ -z ${DATABASE_USER+x} ]; then
|
10
|
+
echo "(DATABASE_USER is not set)"
|
11
|
+
user=$default_name
|
12
|
+
else
|
13
|
+
user=$DATABASE_USER
|
14
|
+
fi
|
15
|
+
echo "Database user is: $user"
|
16
|
+
|
17
|
+
if [ -z ${DATABASE_NAME+x} ]; then
|
18
|
+
echo "(DATABASE_NAME is not set)"
|
19
|
+
database=$default_name
|
20
|
+
else
|
21
|
+
database=$DATABASE_NAME
|
22
|
+
fi
|
23
|
+
echo "Database name is: $database"
|
24
|
+
|
25
|
+
echo
|
26
|
+
echo "Replacing Updated Event with Recorded Event"
|
27
|
+
echo "= = ="
|
28
|
+
echo
|
29
|
+
|
30
|
+
psql $database -U $user -P pager=off -c "UPDATE messages SET type = 'Recorded' WHERE type = 'Updated' AND (stream_name LIKE '%+position' OR stream_name LIKE '%:position');"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-message_store-postgres-database
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.1.
|
4
|
+
version: 0.7.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: scripts
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: " "
|
14
14
|
email: opensource@eventide-project.org
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- database/print-type-category-summary.sh
|
59
59
|
- database/print-type-stream-summary.sh
|
60
60
|
- database/print-type-summary.sh
|
61
|
+
- database/rename-updated-to-recorded.sh
|
61
62
|
- database/table/messages-table.sql
|
62
63
|
- database/types/message.sql
|
63
64
|
- database/uninstall.sh
|