nulogy_message_bus_producer 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c9b2b8a2368d043f45315a7234985b8726fc74622c08de23a412e8cdc7c4ce0
4
- data.tar.gz: 503e680e72a2c0f960f9a003781c9b4925e95943dbb0602ce5d8cfaac280df39
3
+ metadata.gz: 1584c82f65b0be1d4b508359a88720ac4b2b1ec6a7fc82982043de1dfdfb476c
4
+ data.tar.gz: 85adbd1344cebbbc4a2c160c54b94cd2227479c51432422c399d2ad99ea6107a
5
5
  SHA512:
6
- metadata.gz: d59061df9266883502432df4cb847ae497a4340f36681a2f46e0f7557a468a5d255705134fb679a4eaad15a8fb26515fb158c9d0b87f946a1d3903bb2c37fa61
7
- data.tar.gz: 70ab1e05ac86bed58c9442c2580038a75c9ea8c7363a59d0d3e147b9a9b14afe3c2540684a69bb174ace961fcd7aa062096ad38c9bb4845c856b452d49c724e6
6
+ metadata.gz: bdaba4ee6796bdb31e937d5e9d13504a22e57e9f9ef32d03a8bcb62a68e94c089a9fcfba65284d93312409e32cfb63b3127d23129e897b7c3b43e5c6b32900bb
7
+ data.tar.gz: ccdb3e8363346ace7041cf1604a61ea15726247520de4d650eff21ee45bd8b8b2d369b239d5ab449a9d7938825204b13fbd4b304a0175b351915fc3ecf7486f4
data/README.md CHANGED
@@ -14,8 +14,8 @@ This engine contains the classes and validations for producing messages to the M
14
14
  In general, as long as a subscription inherits from `NulogyMessageBusProducer::BasePublicSubscription`, everything
15
15
  should be set up.
16
16
 
17
- Subscriptions will be written to `public_subscriptions` while events generated from the subscriptions will be written to
18
- `public_subscription_events`. Debezium then reads this table from the PG replication log and pushes them into Kafka.
17
+ Subscriptions will be written to the `NulogyMessageBusProducer.subscriptions_table_name` while events generated from the subscriptions will be written to
18
+ `NulogyMessageBusProducer.subscription_events_table_name`. Debezium then reads this table from the PG replication log and pushes them into Kafka.
19
19
 
20
20
  ## Configuration
21
21
 
@@ -24,12 +24,29 @@ Subscriptions will be written to `public_subscriptions` while events generated f
24
24
  | subscriptions_table_name | message_bus_subscriptions | The name of the table for the PublicSubscription model |
25
25
  | subscription_events_table_name | message_bus_subscription_events | The name of the table for the PublicSubscriptionEvents model |
26
26
 
27
- ## Initializer
27
+ ## Setup
28
28
 
29
- There is an initializer (see `engine.rb`) that validates if the current `public_subscriptions.query` queries are valid
30
- against their appropriate GraphQL schema.
29
+ You should configure the gem with an initializer. A recommended setup:
30
+
31
+ ```
32
+ # Table names are configurable (optional)
33
+ NulogyMessageBusProducer.subscriptions_table_name = :public_subscriptions
34
+ NulogyMessageBusProducer.subscription_events_table_name = :public_subscription_events
35
+
36
+ # Register known schemas
37
+ NulogyMessageBusProducer.register_schema("example_domain", "ExampleDomain::Schema")
38
+
39
+ # It is *strongly* recommended to run this validation
40
+ # It ensures the query in a subscription is valid agains the current schema
41
+ # If you do not run this, a change to the schema could break the app
42
+ # Note: ensure to register schemas before running this
43
+ NulogyMessageBusProducer.validate_existing!
44
+ ```
31
45
 
32
46
  ## Rake Tasks
33
47
 
34
- `rake spec` - Run the specs
35
- `rake rubocop` - Run RuboCop
48
+ | Rake command | Description |
49
+ |--------------|----------------|
50
+ | (default) | RSpec +RuboCop |
51
+ | `spec` | RSpec |
52
+ | `rubocop` | RuboCop |
@@ -1,3 +1,3 @@
1
1
  module NulogyMessageBusProducer
2
- VERSION = "1.0.3".freeze
2
+ VERSION = "1.0.4".freeze
3
3
  end
@@ -1,1771 +1,46 @@
1
-  (336.2ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
2
-  (1.8ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
3
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
4
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
5
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "citext"
6
- SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (12.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
8
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
9
-  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES (0)
10
-  (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
12
-  (1.3ms) BEGIN
13
- ActiveRecord::InternalMetadata Create (1.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-06 00:58:43.896232"], ["updated_at", "2020-06-06 00:58:43.896232"]]
14
-  (1.9ms) COMMIT
15
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
16
-  (1.3ms) BEGIN
17
-  (1.3ms) COMMIT
18
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19
- SQL (41.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
20
- SQL (22.9ms) CREATE EXTENSION IF NOT EXISTS "citext"
21
- SQL (16.3ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
22
-  (6.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
23
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
24
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (0)
25
-  (9.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
26
- ActiveRecord::InternalMetadata Load (2.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
27
-  (1.8ms) BEGIN
28
- ActiveRecord::InternalMetadata Create (2.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-06 00:58:44.070622"], ["updated_at", "2020-06-06 00:58:44.070622"]]
29
-  (2.2ms) COMMIT
30
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
31
-  (1.4ms) BEGIN
32
- ActiveRecord::InternalMetadata Update (1.7ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-06 00:58:44.080926"], ["key", "environment"]]
33
-  (2.0ms) COMMIT
34
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
35
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
36
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
37
-  (115.5ms) DROP DATABASE IF EXISTS "graphql_api_test"
38
-  (325.3ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
39
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
40
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "hstore"
41
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "citext"
42
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
43
-  (9.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
44
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
45
-  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES (0)
46
-  (7.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
47
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
48
-  (2.0ms) BEGIN
49
- ActiveRecord::InternalMetadata Create (2.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-06 00:58:54.502133"], ["updated_at", "2020-06-06 00:58:54.502133"]]
50
-  (2.2ms) COMMIT
51
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
52
-  (2.0ms) BEGIN
53
- ActiveRecord::InternalMetadata Update (1.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-06 00:58:54.514732"], ["key", "environment"]]
54
-  (2.5ms) COMMIT
55
-  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
56
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
57
-  (216.8ms) DROP DATABASE IF EXISTS "graphql_api_test"
58
-  (400.7ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
59
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
60
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
61
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "citext"
62
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
63
-  (13.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
64
-  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
65
-  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES (0)
66
-  (7.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
67
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
68
-  (1.7ms) BEGIN
69
- ActiveRecord::InternalMetadata Create (1.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:18:46.460431"], ["updated_at", "2020-06-07 23:18:46.460431"]]
70
-  (1.9ms) COMMIT
71
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
72
-  (1.2ms) BEGIN
73
- ActiveRecord::InternalMetadata Update (1.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:18:46.470603"], ["key", "environment"]]
74
-  (1.9ms) COMMIT
75
-  (1.6ms) SELECT pg_try_advisory_lock(3732957763885691250)
76
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
77
- Migrating to AddPublicSubscriptions (20200303193414)
78
-  (1.3ms) BEGIN
79
-  (2.0ms) ROLLBACK
80
-  (1.8ms) SELECT pg_advisory_unlock(3732957763885691250)
81
-  (1.4ms) SELECT pg_try_advisory_lock(3732957763885691250)
82
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
83
- ActiveRecord::InternalMetadata Load (2.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
84
-  (1.7ms) BEGIN
85
-  (2.4ms) COMMIT
86
-  (2.0ms) SELECT pg_advisory_unlock(3732957763885691250)
87
-  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
88
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
89
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
90
-  (114.7ms) DROP DATABASE IF EXISTS "graphql_api_test"
91
-  (335.4ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
92
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "citext"
1
+  (825.3ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
2
+  (410.2ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
3
+ SQL (5.5ms) CREATE EXTENSION IF NOT EXISTS "citext"
93
4
  SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
94
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
95
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
96
-  (10.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
97
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
98
-  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES (0)
99
-  (7.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
100
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
101
-  (1.4ms) BEGIN
102
- ActiveRecord::InternalMetadata Create (1.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:29:12.480181"], ["updated_at", "2020-06-07 23:29:12.480181"]]
103
-  (1.9ms) COMMIT
104
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
105
-  (1.3ms) BEGIN
106
- ActiveRecord::InternalMetadata Update (1.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:29:12.490735"], ["key", "environment"]]
107
-  (2.1ms) COMMIT
108
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
109
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
110
-  (116.3ms) DROP DATABASE IF EXISTS "graphql_api_test"
111
-  (328.6ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
112
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "citext"
113
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
114
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
115
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
116
-  (10.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
117
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
118
-  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES (0)
119
-  (6.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
120
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
121
-  (1.3ms) BEGIN
122
- ActiveRecord::InternalMetadata Create (1.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:31:12.947047"], ["updated_at", "2020-06-07 23:31:12.947047"]]
123
-  (2.1ms) COMMIT
124
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
125
-  (1.4ms) BEGIN
126
- ActiveRecord::InternalMetadata Update (1.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:31:12.957774"], ["key", "environment"]]
127
-  (2.1ms) COMMIT
128
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
129
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
130
-  (172.6ms) DROP DATABASE IF EXISTS "graphql_api_development"
131
-  (119.2ms) DROP DATABASE IF EXISTS "graphql_api_test"
132
-  (336.8ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
133
-  (335.8ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
134
-  (10.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
135
-  (6.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
136
-  (1.4ms) SELECT pg_try_advisory_lock(3732957763885691250)
137
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
138
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
139
-  (1.2ms) BEGIN
140
- ActiveRecord::InternalMetadata Create (1.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:31:42.032098"], ["updated_at", "2020-06-07 23:31:42.032098"]]
141
-  (2.0ms) COMMIT
142
-  (1.3ms) SELECT pg_advisory_unlock(3732957763885691250)
143
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
144
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
145
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
146
-  (112.7ms) DROP DATABASE IF EXISTS "graphql_api_test"
147
-  (336.3ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
148
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "citext"
149
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
150
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
151
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
152
-  (12.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
153
-  (3.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
154
-  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES (0)
155
-  (9.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
156
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
157
-  (1.6ms) BEGIN
158
- ActiveRecord::InternalMetadata Create (1.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:32:20.589047"], ["updated_at", "2020-06-07 23:32:20.589047"]]
159
-  (2.1ms) COMMIT
160
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
161
-  (1.2ms) BEGIN
162
- ActiveRecord::InternalMetadata Update (1.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:32:20.600065"], ["key", "environment"]]
163
-  (2.0ms) COMMIT
164
-  (1.4ms) SELECT pg_try_advisory_lock(3732957763885691250)
165
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
166
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
167
-  (1.6ms) BEGIN
168
-  (1.3ms) COMMIT
169
-  (1.5ms) SELECT pg_advisory_unlock(3732957763885691250)
170
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
171
-  (1.1ms) SELECT pg_try_advisory_lock(3732957763885691250)
172
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
173
- Migrating to AddPublicSubscriptions (20200303193414)
174
-  (1.5ms) BEGIN
175
- ActiveRecord::SchemaMigration Create (2.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200303193414"]]
176
-  (1.9ms) COMMIT
177
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
178
-  (1.3ms) BEGIN
179
-  (1.3ms) ROLLBACK
180
-  (2.3ms) SELECT pg_advisory_unlock(3732957763885691250)
181
-  (1.2ms) SELECT pg_try_advisory_lock(3732957763885691250)
182
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
183
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
184
-  (1.2ms) BEGIN
185
-  (1.5ms) ROLLBACK
186
-  (1.5ms) SELECT pg_advisory_unlock(3732957763885691250)
187
-  (1.2ms) SELECT pg_try_advisory_lock(3732957763885691250)
188
-  (2.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
189
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
190
-  (1.7ms) BEGIN
191
- ActiveRecord::SchemaMigration Create (2.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200604203932"]]
192
-  (3.3ms) COMMIT
193
- ActiveRecord::InternalMetadata Load (2.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
194
-  (1.7ms) BEGIN
195
-  (1.6ms) COMMIT
196
-  (1.4ms) SELECT pg_advisory_unlock(3732957763885691250)
197
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
198
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
199
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
200
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
201
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
202
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
203
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
204
-  (116.2ms) DROP DATABASE IF EXISTS "graphql_api_test"
205
-  (328.4ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
206
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "citext"
207
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
208
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
209
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
210
-  (8.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
211
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
212
-  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
213
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
214
- (20200303193414);
215
-
216
- 
217
-  (6.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
218
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
219
-  (1.7ms) BEGIN
220
- ActiveRecord::InternalMetadata Create (2.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:43:30.529881"], ["updated_at", "2020-06-07 23:43:30.529881"]]
221
-  (2.4ms) COMMIT
222
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
223
-  (1.5ms) BEGIN
224
- ActiveRecord::InternalMetadata Update (2.3ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:43:30.542918"], ["key", "environment"]]
225
-  (2.1ms) COMMIT
226
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
227
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
228
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
229
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
230
-  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
231
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
232
-  (117.1ms) DROP DATABASE IF EXISTS "graphql_api_development"
233
-  (116.7ms) DROP DATABASE IF EXISTS "graphql_api_test"
234
-  (325.6ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
235
-  (331.5ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
236
-  (9.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
237
-  (7.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
238
-  (1.7ms) SELECT pg_try_advisory_lock(3732957763885691250)
239
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
240
- Migrating to AddPublicSubscriptions (20200303193414)
241
-  (1.6ms) BEGIN
242
- ActiveRecord::SchemaMigration Create (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200303193414"]]
243
-  (2.0ms) COMMIT
244
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
245
-  (1.2ms) BEGIN
246
- ActiveRecord::SchemaMigration Create (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200604203932"]]
247
-  (1.8ms) COMMIT
248
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
249
-  (2.6ms) BEGIN
250
- ActiveRecord::InternalMetadata Create (2.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:45:01.815889"], ["updated_at", "2020-06-07 23:45:01.815889"]]
251
-  (2.6ms) COMMIT
252
-  (1.5ms) SELECT pg_advisory_unlock(3732957763885691250)
253
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
254
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
255
-  (1.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
256
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
257
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
258
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
259
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
260
-  (114.7ms) DROP DATABASE IF EXISTS "graphql_api_test"
261
-  (328.5ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
262
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "citext"
263
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
264
5
  SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
265
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
266
-  (10.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
267
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
268
-  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
269
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
270
- (20200303193414);
271
-
272
- 
273
-  (6.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
274
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
275
-  (1.6ms) BEGIN
276
- ActiveRecord::InternalMetadata Create (1.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:45:09.895516"], ["updated_at", "2020-06-07 23:45:09.895516"]]
277
-  (1.9ms) COMMIT
278
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
279
-  (1.3ms) BEGIN
280
- ActiveRecord::InternalMetadata Update (1.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:45:09.906223"], ["key", "environment"]]
281
-  (2.0ms) COMMIT
282
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
283
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
284
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
285
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
286
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
287
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
288
-  (130.9ms) DROP DATABASE IF EXISTS "graphql_api_development"
289
-  (113.0ms) DROP DATABASE IF EXISTS "graphql_api_test"
290
-  (331.1ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
291
-  (327.6ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
292
-  (10.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
293
-  (7.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
294
-  (1.1ms) SELECT pg_try_advisory_lock(3732957763885691250)
295
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
296
- Migrating to AddPublicSubscriptions (20200303193414)
297
-  (1.2ms) BEGIN
298
- ActiveRecord::SchemaMigration Create (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200303193414"]]
299
-  (2.4ms) COMMIT
300
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
301
-  (1.6ms) BEGIN
302
- ActiveRecord::SchemaMigration Create (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200604203932"]]
303
-  (1.8ms) COMMIT
304
- ActiveRecord::InternalMetadata Load (4.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
305
-  (1.5ms) BEGIN
306
- ActiveRecord::InternalMetadata Create (2.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:49:09.877773"], ["updated_at", "2020-06-07 23:49:09.877773"]]
307
-  (3.1ms) COMMIT
308
-  (2.1ms) SELECT pg_advisory_unlock(3732957763885691250)
309
-  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
310
-  (1.6ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
311
-  (1.4ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
312
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
313
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
314
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
315
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
316
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
317
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
318
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "citext"
319
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
320
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
321
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
322
-  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
323
- ActiveRecord::InternalMetadata Load (2.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
324
-  (1.5ms) BEGIN
325
-  (1.6ms) COMMIT
326
- ActiveRecord::InternalMetadata Load (2.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
327
-  (2.1ms) BEGIN
328
-  (1.4ms) COMMIT
329
- SQL (2.3ms) CREATE EXTENSION IF NOT EXISTS "citext"
330
- SQL (2.6ms) CREATE EXTENSION IF NOT EXISTS "hstore"
331
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
332
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
333
-  (14.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
6
+ SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
+  (4.3ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
8
+  (33.8ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
9
+  (11.9ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
10
+  (2.0ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
11
+  (9.6ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12
+  (4.7ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
13
+  (8.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
334
14
   (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
335
-  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
336
-  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES
337
- (20200303193414);
338
-
339
- 
340
-  (10.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
341
- ActiveRecord::InternalMetadata Load (2.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
342
-  (1.4ms) BEGIN
343
- ActiveRecord::InternalMetadata Create (1.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:53:01.327107"], ["updated_at", "2020-06-07 23:53:01.327107"]]
344
-  (3.2ms) COMMIT
345
- ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
346
-  (1.5ms) BEGIN
347
- ActiveRecord::InternalMetadata Update (2.0ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:53:01.340009"], ["key", "environment"]]
348
-  (2.5ms) COMMIT
349
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
350
-  (2.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
351
-  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
352
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
353
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
354
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
355
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
356
-  (119.5ms) DROP DATABASE IF EXISTS "graphql_api_development"
357
-  (115.7ms) DROP DATABASE IF EXISTS "graphql_api_test"
358
-  (339.5ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
359
-  (330.5ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
360
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "citext"
361
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "hstore"
362
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
363
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
364
-  (14.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
365
-  (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
366
-  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
367
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES
368
- (20200303193414);
369
-
370
- 
371
-  (8.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
372
- ActiveRecord::InternalMetadata Load (2.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
373
-  (1.8ms) BEGIN
374
- ActiveRecord::InternalMetadata Create (1.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:53:18.403937"], ["updated_at", "2020-06-07 23:53:18.403937"]]
375
-  (2.1ms) COMMIT
376
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
377
-  (1.3ms) BEGIN
378
-  (1.4ms) COMMIT
379
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "citext"
380
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
381
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
382
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
383
-  (14.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
384
-  (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
385
-  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
386
-  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES
387
- (20200303193414);
388
-
389
- 
390
-  (8.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
391
- ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
392
-  (1.7ms) BEGIN
393
- ActiveRecord::InternalMetadata Create (2.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:53:18.524408"], ["updated_at", "2020-06-07 23:53:18.524408"]]
394
-  (1.8ms) COMMIT
395
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
396
-  (1.3ms) BEGIN
397
- ActiveRecord::InternalMetadata Update (1.3ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:53:18.534070"], ["key", "environment"]]
398
-  (1.9ms) COMMIT
399
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
400
-  (1.2ms) SELECT pg_try_advisory_lock(3732957763885691250)
401
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
402
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
15
+  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
16
+  (8.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
17
+ ActiveRecord::InternalMetadata Load (2.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
403
18
   (1.7ms) BEGIN
404
-  (1.3ms) COMMIT
405
-  (1.4ms) SELECT pg_advisory_unlock(3732957763885691250)
406
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
407
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
408
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
409
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
410
-  (2.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
411
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
412
-  (1.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
413
-  (119.1ms) DROP DATABASE IF EXISTS "graphql_api_test"
414
-  (332.5ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
415
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "citext"
19
+ ActiveRecord::InternalMetadata Create (3.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-07-13 15:43:44.182720"], ["updated_at", "2020-07-13 15:43:44.182720"]]
20
+  (1.7ms) COMMIT
21
+ ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
22
+  (1.1ms) BEGIN
23
+  (1.2ms) COMMIT
24
+ SQL (2.2ms) CREATE EXTENSION IF NOT EXISTS "citext"
416
25
  SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
417
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
26
+ SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
418
27
  SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
419
-  (10.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
420
-  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
421
-  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
422
-  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES
423
- (20200303193414);
424
-
425
- 
426
-  (7.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
427
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
428
-  (1.4ms) BEGIN
429
- ActiveRecord::InternalMetadata Create (2.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:53:40.331531"], ["updated_at", "2020-06-07 23:53:40.331531"]]
430
-  (2.4ms) COMMIT
431
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
432
-  (1.4ms) BEGIN
433
- ActiveRecord::InternalMetadata Update (1.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:53:40.343164"], ["key", "environment"]]
434
-  (2.1ms) COMMIT
435
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
436
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
437
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
438
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
439
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
440
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
441
-  (115.0ms) DROP DATABASE IF EXISTS "graphql_api_test"
442
-  (329.0ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
443
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "citext"
444
- SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "hstore"
445
- SQL (1.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
446
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
447
-  (9.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
448
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
449
-  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
450
-  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES
451
- (20200303193414);
452
-
453
- 
454
-  (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
455
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
456
-  (1.5ms) BEGIN
457
- ActiveRecord::InternalMetadata Create (1.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:54:40.584786"], ["updated_at", "2020-06-07 23:54:40.584786"]]
458
-  (2.5ms) COMMIT
459
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
460
-  (1.3ms) BEGIN
461
- ActiveRecord::InternalMetadata Update (1.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:54:40.596323"], ["key", "environment"]]
462
-  (1.8ms) COMMIT
28
+  (1.7ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
29
+  (24.5ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
30
+  (3.7ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
31
+  (1.2ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
32
+  (9.2ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
33
+  (4.4ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
34
+  (11.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
463
35
   (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
464
-  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
465
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
466
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
467
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
468
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
469
-  (187.0ms) DROP DATABASE IF EXISTS "graphql_api_development"
470
-  (166.8ms) DROP DATABASE IF EXISTS "graphql_api_test"
471
-  (1.3ms) DROP DATABASE IF EXISTS "graphql_api_development"
472
-  (1.3ms) DROP DATABASE IF EXISTS "graphql_api_test"
473
-  (385.9ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
474
-  (345.4ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
475
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "citext"
476
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "hstore"
477
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
478
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
479
-  (16.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
480
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
481
-  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
482
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
483
- (20200303193414);
484
-
485
- 
486
-  (7.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
487
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
488
-  (1.6ms) BEGIN
489
- ActiveRecord::InternalMetadata Create (2.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-08 13:00:15.484739"], ["updated_at", "2020-06-08 13:00:15.484739"]]
490
-  (2.3ms) COMMIT
491
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
492
-  (2.6ms) BEGIN
493
-  (1.5ms) COMMIT
494
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "citext"
495
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "hstore"
496
- SQL (2.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
497
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
498
-  (14.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
499
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
500
-  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
501
-  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES
502
- (20200303193414);
503
-
504
- 
505
-  (8.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
506
- ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
507
-  (1.4ms) BEGIN
508
- ActiveRecord::InternalMetadata Create (2.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-08 13:00:15.646758"], ["updated_at", "2020-06-08 13:00:15.646758"]]
509
-  (2.0ms) COMMIT
510
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
511
-  (1.2ms) BEGIN
512
- ActiveRecord::InternalMetadata Update (1.7ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-08 13:00:15.656464"], ["key", "environment"]]
513
-  (1.8ms) COMMIT
514
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
515
-  (2.6ms) SELECT pg_try_advisory_lock(3732957763885691250)
516
-  (3.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
517
- ActiveRecord::InternalMetadata Load (2.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
518
-  (2.6ms) BEGIN
519
-  (2.3ms) COMMIT
520
-  (2.2ms) SELECT pg_advisory_unlock(3732957763885691250)
521
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
522
-  (1.4ms) SELECT pg_try_advisory_lock(3732957763885691250)
523
-  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
524
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
525
-  (1.2ms) BEGIN
526
-  (1.3ms) COMMIT
527
-  (1.4ms) SELECT pg_advisory_unlock(3732957763885691250)
528
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
529
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
530
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
531
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
532
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
533
-  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
534
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
535
-  (116.3ms) DROP DATABASE IF EXISTS "graphql_api_development"
536
-  (118.2ms) DROP DATABASE IF EXISTS "graphql_api_test"
537
-  (1.4ms) DROP DATABASE IF EXISTS "graphql_api_development"
538
-  (1.4ms) DROP DATABASE IF EXISTS "graphql_api_test"
539
-  (1.1ms) DROP DATABASE IF EXISTS "graphql_api_development"
540
-  (1.3ms) DROP DATABASE IF EXISTS "graphql_api_test"
541
-  (340.3ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
542
-  (336.9ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
543
-  (12.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
544
-  (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
545
-  (1.1ms) SELECT pg_try_advisory_lock(3732957763885691250)
546
-  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
547
- Migrating to AddPublicSubscriptions (20200303193414)
548
-  (2.2ms) BEGIN
549
-  (2.3ms) ROLLBACK
550
-  (1.8ms) SELECT pg_advisory_unlock(3732957763885691250)
551
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
552
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
553
-  (120.3ms) DROP DATABASE IF EXISTS "graphql_api_development"
554
-  (114.5ms) DROP DATABASE IF EXISTS "graphql_api_test"
555
-  (337.1ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
556
-  (335.0ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
557
-  (10.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
36
+  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
558
37
   (7.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
559
-  (1.3ms) SELECT pg_try_advisory_lock(3732957763885691250)
560
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
561
- Migrating to AddPublicSubscriptions (20200303193414)
562
-  (1.5ms) BEGIN
563
-  (2.2ms) ROLLBACK
564
-  (1.9ms) SELECT pg_advisory_unlock(3732957763885691250)
565
-  (1.5ms) SELECT pg_try_advisory_lock(3732957763885691250)
566
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
567
- Migrating to AddPublicSubscriptions (20200303193414)
568
-  (1.9ms) BEGIN
569
- ActiveRecord::SchemaMigration Create (2.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200303193414"]]
570
-  (2.4ms) COMMIT
571
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
572
-  (1.7ms) BEGIN
573
- ActiveRecord::SchemaMigration Create (2.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200604203932"]]
574
-  (2.7ms) COMMIT
575
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
576
-  (2.1ms) BEGIN
577
- ActiveRecord::InternalMetadata Create (2.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-08 13:10:28.699876"], ["updated_at", "2020-06-08 13:10:28.699876"]]
578
-  (2.0ms) COMMIT
579
-  (1.4ms) SELECT pg_advisory_unlock(3732957763885691250)
580
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
581
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
582
-  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
583
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
584
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
585
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
586
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
587
-  (112.4ms) DROP DATABASE IF EXISTS "graphql_api_development"
588
-  (114.5ms) DROP DATABASE IF EXISTS "graphql_api_test"
589
-  (341.6ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
590
-  (340.4ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
591
-  (10.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
592
-  (8.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
593
-  (1.5ms) SELECT pg_try_advisory_lock(3732957763885691250)
594
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
595
- Migrating to AddPublicSubscriptions (20200303193414)
596
-  (1.6ms) BEGIN
597
-  (1.6ms) SELECT pg_try_advisory_lock(3732957763885691250)
598
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
599
- Migrating to AddPublicSubscriptions (20200303193414)
600
-  (1.3ms) BEGIN
601
-  (1.2ms) SHOW statement_timeout
602
-  (1.3ms) SET statement_timeout TO '0ms'
603
-  (2.0ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
604
-  (14.0ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
605
-  (4.5ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
606
-  (1.5ms) SELECT current_schema
607
-  (2.3ms) SELECT a.attname AS column_name
608
- FROM pg_catalog.pg_attribute a
609
- WHERE a.attrelid = (
610
- SELECT c.oid
611
- FROM pg_catalog.pg_class c
612
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
613
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscriptions)$'
614
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
615
- )
616
- AND a.attnum > 0 AND NOT a.attisdropped
617
- ORDER BY a.attnum;
618
- 
619
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'id') AS result
620
- 
621
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'subscription_group_id') AS result
622
- 
623
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'event_type') AS result
624
- 
625
-  (1.7ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'topic_name') AS result
626
- 
627
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'query') AS result
628
- 
629
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'created_at') AS result
630
- 
631
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'updated_at') AS result
632
- 
633
-  (5.7ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
634
-  (4.6ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
635
-  (1.3ms) SELECT current_schema
636
-  (1.8ms) SELECT a.attname AS column_name
637
- FROM pg_catalog.pg_attribute a
638
- WHERE a.attrelid = (
639
- SELECT c.oid
640
- FROM pg_catalog.pg_class c
641
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
642
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscription_events)$'
643
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
644
- )
645
- AND a.attnum > 0 AND NOT a.attisdropped
646
- ORDER BY a.attnum;
647
- 
648
-  (1.0ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'id') AS result
649
- 
650
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'public_subscription_id') AS result
651
- 
652
-  (1.1ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'partition_key') AS result
653
- 
654
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'topic_name') AS result
655
- 
656
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'tenant_id') AS result
657
- 
658
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'event_json') AS result
659
- 
660
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'created_at') AS result
661
- 
662
-  (1.3ms) SET statement_timeout TO '0'
663
- ActiveRecord::SchemaMigration Create (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200303193414"]]
664
-  (2.4ms) COMMIT
665
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
38
+ ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
666
39
   (1.2ms) BEGIN
667
-  (1.5ms) SHOW statement_timeout
668
-  (1.3ms) SET statement_timeout TO '0ms'
669
-  (1.7ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
670
-  (1.9ms)  UPDATE public_subscriptions
671
- SET query = REGEXP_REPLACE(query, '(W)uuid(W)', 'id', 'g')
672
- 
673
-  (1.3ms) SET statement_timeout TO '0'
674
- ActiveRecord::SchemaMigration Create (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200604203932"]]
675
-  (2.0ms) COMMIT
676
- ActiveRecord::InternalMetadata Load (2.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
677
-  (1.8ms) BEGIN
678
- ActiveRecord::InternalMetadata Create (2.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-08 13:20:52.569239"], ["updated_at", "2020-06-08 13:20:52.569239"]]
679
-  (3.0ms) COMMIT
680
-  (1.7ms) SELECT pg_advisory_unlock(3732957763885691250)
681
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
682
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
683
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
684
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
685
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
686
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
687
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
688
-  (115.4ms) DROP DATABASE IF EXISTS "graphql_api_test"
689
-  (349.8ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
690
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "citext"
691
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
692
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
693
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
694
-  (1.3ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
695
-  (10.1ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
696
-  (4.9ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
697
-  (1.2ms) SELECT current_schema
698
-  (2.3ms) SELECT a.attname AS column_name
699
- FROM pg_catalog.pg_attribute a
700
- WHERE a.attrelid = (
701
- SELECT c.oid
702
- FROM pg_catalog.pg_class c
703
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
704
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscription_events)$'
705
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
706
- )
707
- AND a.attnum > 0 AND NOT a.attisdropped
708
- ORDER BY a.attnum;
709
- 
710
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'id') AS result
711
- 
712
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'public_subscription_id') AS result
713
- 
714
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'partition_key') AS result
715
- 
716
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'topic_name') AS result
717
- 
718
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'tenant_id') AS result
719
- 
720
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'event_json') AS result
721
- 
722
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'created_at') AS result
723
- 
724
-  (1.2ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
725
-  (7.0ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
726
-  (3.8ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
727
-  (1.3ms) SELECT current_schema
728
-  (1.8ms) SELECT a.attname AS column_name
729
- FROM pg_catalog.pg_attribute a
730
- WHERE a.attrelid = (
731
- SELECT c.oid
732
- FROM pg_catalog.pg_class c
733
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
734
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscriptions)$'
735
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
736
- )
737
- AND a.attnum > 0 AND NOT a.attisdropped
738
- ORDER BY a.attnum;
739
- 
740
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'id') AS result
741
- 
742
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'subscription_group_id') AS result
743
- 
744
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'event_type') AS result
745
- 
746
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'topic_name') AS result
747
- 
748
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'query') AS result
749
- 
750
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'created_at') AS result
751
- 
752
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'updated_at') AS result
753
- 
754
-  (7.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
755
-  (1.4ms) SELECT current_schema
756
-  (1.8ms) SELECT a.attname AS column_name
757
- FROM pg_catalog.pg_attribute a
758
- WHERE a.attrelid = (
759
- SELECT c.oid
760
- FROM pg_catalog.pg_class c
761
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
762
- WHERE c.relname OPERATOR(pg_catalog.~) '^(schema_migrations)$'
763
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
764
- )
765
- AND a.attnum > 0 AND NOT a.attisdropped
766
- ORDER BY a.attnum;
767
- 
768
-  (1.3ms) SELECT pg_get_serial_sequence('public.schema_migrations', 'version') AS result
769
- 
770
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
771
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
772
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES
773
- (20200303193414);
774
-
775
- 
776
-  (6.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
777
-  (1.4ms) SELECT current_schema
778
-  (1.7ms) SELECT a.attname AS column_name
779
- FROM pg_catalog.pg_attribute a
780
- WHERE a.attrelid = (
781
- SELECT c.oid
782
- FROM pg_catalog.pg_class c
783
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
784
- WHERE c.relname OPERATOR(pg_catalog.~) '^(ar_internal_metadata)$'
785
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
786
- )
787
- AND a.attnum > 0 AND NOT a.attisdropped
788
- ORDER BY a.attnum;
789
- 
790
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'key') AS result
791
- 
792
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'value') AS result
793
- 
794
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'created_at') AS result
795
- 
796
-  (1.2ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'updated_at') AS result
797
- 
798
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
799
-  (1.3ms) BEGIN
800
- ActiveRecord::InternalMetadata Create (1.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-08 13:22:42.487970"], ["updated_at", "2020-06-08 13:22:42.487970"]]
801
-  (1.7ms) COMMIT
802
- ActiveRecord::InternalMetadata Load (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
803
-  (0.9ms) BEGIN
804
- ActiveRecord::InternalMetadata Update (1.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-08 13:22:42.497315"], ["key", "environment"]]
40
+ ActiveRecord::InternalMetadata Create (2.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-07-13 15:43:44.359710"], ["updated_at", "2020-07-13 15:43:44.359710"]]
805
41
   (1.8ms) COMMIT
806
- SQL (4.7ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
807
- GraphqlApi::Models::PublicSubscription Load (3.6ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
808
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
809
-  (1.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
810
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
811
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
812
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
813
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
814
-  (164.3ms) DROP DATABASE IF EXISTS "graphql_api_development"
815
-  (163.3ms) DROP DATABASE IF EXISTS "graphql_api_test"
816
-  (375.6ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
817
-  (330.6ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
818
- SQL (3.0ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
819
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "citext"
820
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "hstore"
821
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
822
- SQL (2.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
823
-  (1.6ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
824
-  (16.5ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
825
-  (5.5ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
826
-  (1.5ms) SELECT current_schema
827
-  (2.6ms) SELECT a.attname AS column_name
828
- FROM pg_catalog.pg_attribute a
829
- WHERE a.attrelid = (
830
- SELECT c.oid
831
- FROM pg_catalog.pg_class c
832
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
833
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscription_events)$'
834
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
835
- )
836
- AND a.attnum > 0 AND NOT a.attisdropped
837
- ORDER BY a.attnum;
838
- 
839
-  (1.6ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'id') AS result
840
- 
841
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'public_subscription_id') AS result
842
- 
843
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'partition_key') AS result
844
- 
845
-  (1.9ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'topic_name') AS result
846
- 
847
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'tenant_id') AS result
848
- 
849
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'event_json') AS result
850
- 
851
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'created_at') AS result
852
- 
853
-  (1.8ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
854
-  (6.3ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
855
-  (4.1ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
856
-  (1.4ms) SELECT current_schema
857
-  (1.6ms) SELECT a.attname AS column_name
858
- FROM pg_catalog.pg_attribute a
859
- WHERE a.attrelid = (
860
- SELECT c.oid
861
- FROM pg_catalog.pg_class c
862
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
863
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscriptions)$'
864
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
865
- )
866
- AND a.attnum > 0 AND NOT a.attisdropped
867
- ORDER BY a.attnum;
868
- 
869
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'id') AS result
870
- 
871
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'subscription_group_id') AS result
872
- 
873
-  (1.1ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'event_type') AS result
874
- 
875
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'topic_name') AS result
876
- 
877
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'query') AS result
878
- 
879
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'created_at') AS result
880
- 
881
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'updated_at') AS result
882
- 
883
-  (6.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
884
-  (1.3ms) SELECT current_schema
885
-  (1.7ms) SELECT a.attname AS column_name
886
- FROM pg_catalog.pg_attribute a
887
- WHERE a.attrelid = (
888
- SELECT c.oid
889
- FROM pg_catalog.pg_class c
890
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
891
- WHERE c.relname OPERATOR(pg_catalog.~) '^(schema_migrations)$'
892
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
893
- )
894
- AND a.attnum > 0 AND NOT a.attisdropped
895
- ORDER BY a.attnum;
896
- 
897
-  (1.3ms) SELECT pg_get_serial_sequence('public.schema_migrations', 'version') AS result
898
- 
899
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
900
-  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
901
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
902
- (20200303193414);
903
-
904
- 
905
-  (7.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
906
-  (1.3ms) SELECT current_schema
907
-  (1.8ms) SELECT a.attname AS column_name
908
- FROM pg_catalog.pg_attribute a
909
- WHERE a.attrelid = (
910
- SELECT c.oid
911
- FROM pg_catalog.pg_class c
912
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
913
- WHERE c.relname OPERATOR(pg_catalog.~) '^(ar_internal_metadata)$'
914
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
915
- )
916
- AND a.attnum > 0 AND NOT a.attisdropped
917
- ORDER BY a.attnum;
918
- 
919
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'key') AS result
920
- 
921
-  (1.1ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'value') AS result
922
- 
923
-  (1.1ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'created_at') AS result
924
- 
925
-  (1.1ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'updated_at') AS result
926
- 
927
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
928
-  (1.7ms) BEGIN
929
- ActiveRecord::InternalMetadata Create (1.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-09 20:39:56.100478"], ["updated_at", "2020-06-09 20:39:56.100478"]]
930
-  (2.0ms) COMMIT
931
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
932
-  (1.6ms) BEGIN
933
-  (1.4ms) COMMIT
934
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "citext"
935
- SQL (2.1ms) CREATE EXTENSION IF NOT EXISTS "hstore"
936
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
937
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
938
-  (1.7ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
939
-  (15.5ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
940
-  (4.1ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
941
-  (1.3ms) SELECT current_schema
942
-  (2.3ms) SELECT a.attname AS column_name
943
- FROM pg_catalog.pg_attribute a
944
- WHERE a.attrelid = (
945
- SELECT c.oid
946
- FROM pg_catalog.pg_class c
947
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
948
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscription_events)$'
949
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
950
- )
951
- AND a.attnum > 0 AND NOT a.attisdropped
952
- ORDER BY a.attnum;
953
- 
954
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'id') AS result
955
- 
956
-  (1.7ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'public_subscription_id') AS result
957
- 
958
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'partition_key') AS result
959
- 
960
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'topic_name') AS result
961
- 
962
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'tenant_id') AS result
963
- 
964
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'event_json') AS result
965
- 
966
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'created_at') AS result
967
- 
968
-  (1.3ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
969
-  (6.8ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
970
-  (4.0ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
971
-  (1.2ms) SELECT current_schema
972
-  (1.8ms) SELECT a.attname AS column_name
973
- FROM pg_catalog.pg_attribute a
974
- WHERE a.attrelid = (
975
- SELECT c.oid
976
- FROM pg_catalog.pg_class c
977
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
978
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscriptions)$'
979
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
980
- )
981
- AND a.attnum > 0 AND NOT a.attisdropped
982
- ORDER BY a.attnum;
983
- 
984
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'id') AS result
985
- 
986
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'subscription_group_id') AS result
987
- 
988
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'event_type') AS result
989
- 
990
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'topic_name') AS result
991
- 
992
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'query') AS result
993
- 
994
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'created_at') AS result
995
- 
996
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'updated_at') AS result
997
- 
998
-  (9.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
999
-  (1.9ms) SELECT current_schema
1000
-  (2.1ms) SELECT a.attname AS column_name
1001
- FROM pg_catalog.pg_attribute a
1002
- WHERE a.attrelid = (
1003
- SELECT c.oid
1004
- FROM pg_catalog.pg_class c
1005
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1006
- WHERE c.relname OPERATOR(pg_catalog.~) '^(schema_migrations)$'
1007
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1008
- )
1009
- AND a.attnum > 0 AND NOT a.attisdropped
1010
- ORDER BY a.attnum;
1011
- 
1012
-  (1.3ms) SELECT pg_get_serial_sequence('public.schema_migrations', 'version') AS result
1013
- 
1014
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1015
-  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
1016
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES
1017
- (20200303193414);
1018
-
1019
- 
1020
-  (7.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1021
-  (1.7ms) SELECT current_schema
1022
-  (2.2ms) SELECT a.attname AS column_name
1023
- FROM pg_catalog.pg_attribute a
1024
- WHERE a.attrelid = (
1025
- SELECT c.oid
1026
- FROM pg_catalog.pg_class c
1027
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1028
- WHERE c.relname OPERATOR(pg_catalog.~) '^(ar_internal_metadata)$'
1029
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1030
- )
1031
- AND a.attnum > 0 AND NOT a.attisdropped
1032
- ORDER BY a.attnum;
1033
- 
1034
-  (1.8ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'key') AS result
1035
- 
1036
-  (1.4ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'value') AS result
1037
- 
1038
-  (1.5ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'created_at') AS result
1039
- 
1040
-  (1.7ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'updated_at') AS result
1041
- 
1042
- ActiveRecord::InternalMetadata Load (2.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1043
-  (1.5ms) BEGIN
1044
- ActiveRecord::InternalMetadata Create (1.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-09 20:39:56.304857"], ["updated_at", "2020-06-09 20:39:56.304857"]]
1045
-  (2.0ms) COMMIT
1046
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1047
-  (1.5ms) BEGIN
1048
- ActiveRecord::InternalMetadata Update (2.0ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-09 20:39:56.315466"], ["key", "environment"]]
1049
-  (2.7ms) COMMIT
1050
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1051
- GraphqlApi::Models::PublicSubscription Load (3.1ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1052
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1053
- SQL (2.3ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1054
- GraphqlApi::Models::PublicSubscription Load (2.1ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1055
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1056
-  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1057
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1058
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1059
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1060
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1061
-  (120.9ms) DROP DATABASE IF EXISTS "graphql_api_test"
1062
-  (320.0ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1063
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "citext"
1064
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1065
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1066
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1067
-  (1.4ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1068
-  (14.7ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1069
-  (4.5ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1070
-  (1.3ms) SELECT current_schema
1071
-  (2.3ms) SELECT a.attname AS column_name
1072
- FROM pg_catalog.pg_attribute a
1073
- WHERE a.attrelid = (
1074
- SELECT c.oid
1075
- FROM pg_catalog.pg_class c
1076
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1077
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscription_events)$'
1078
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1079
- )
1080
- AND a.attnum > 0 AND NOT a.attisdropped
1081
- ORDER BY a.attnum;
1082
- 
1083
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'id') AS result
1084
- 
1085
-  (1.6ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'public_subscription_id') AS result
1086
- 
1087
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'partition_key') AS result
1088
- 
1089
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'topic_name') AS result
1090
- 
1091
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'tenant_id') AS result
1092
- 
1093
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'event_json') AS result
1094
- 
1095
-  (1.6ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'created_at') AS result
1096
- 
1097
-  (1.4ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1098
-  (7.1ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1099
-  (3.8ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1100
-  (1.1ms) SELECT current_schema
1101
-  (1.7ms) SELECT a.attname AS column_name
1102
- FROM pg_catalog.pg_attribute a
1103
- WHERE a.attrelid = (
1104
- SELECT c.oid
1105
- FROM pg_catalog.pg_class c
1106
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1107
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscriptions)$'
1108
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1109
- )
1110
- AND a.attnum > 0 AND NOT a.attisdropped
1111
- ORDER BY a.attnum;
1112
- 
1113
-  (1.1ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'id') AS result
1114
- 
1115
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'subscription_group_id') AS result
1116
- 
1117
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'event_type') AS result
1118
- 
1119
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'topic_name') AS result
1120
- 
1121
-  (1.1ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'query') AS result
1122
- 
1123
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'created_at') AS result
1124
- 
1125
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'updated_at') AS result
1126
- 
1127
-  (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1128
-  (1.4ms) SELECT current_schema
1129
-  (1.6ms) SELECT a.attname AS column_name
1130
- FROM pg_catalog.pg_attribute a
1131
- WHERE a.attrelid = (
1132
- SELECT c.oid
1133
- FROM pg_catalog.pg_class c
1134
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1135
- WHERE c.relname OPERATOR(pg_catalog.~) '^(schema_migrations)$'
1136
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1137
- )
1138
- AND a.attnum > 0 AND NOT a.attisdropped
1139
- ORDER BY a.attnum;
1140
- 
1141
-  (1.4ms) SELECT pg_get_serial_sequence('public.schema_migrations', 'version') AS result
1142
- 
1143
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1144
-  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
1145
-  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES
1146
- (20200303193414);
1147
-
1148
- 
1149
-  (16.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1150
-  (1.7ms) SELECT current_schema
1151
-  (2.1ms) SELECT a.attname AS column_name
1152
- FROM pg_catalog.pg_attribute a
1153
- WHERE a.attrelid = (
1154
- SELECT c.oid
1155
- FROM pg_catalog.pg_class c
1156
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1157
- WHERE c.relname OPERATOR(pg_catalog.~) '^(ar_internal_metadata)$'
1158
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1159
- )
1160
- AND a.attnum > 0 AND NOT a.attisdropped
1161
- ORDER BY a.attnum;
1162
- 
1163
-  (1.6ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'key') AS result
1164
- 
1165
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'value') AS result
1166
- 
1167
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'created_at') AS result
1168
- 
1169
-  (1.2ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'updated_at') AS result
1170
- 
1171
42
  ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1172
-  (1.5ms) BEGIN
1173
- ActiveRecord::InternalMetadata Create (2.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-09 20:40:21.947649"], ["updated_at", "2020-06-09 20:40:21.947649"]]
1174
-  (2.4ms) COMMIT
1175
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1176
-  (1.5ms) BEGIN
1177
- ActiveRecord::InternalMetadata Update (1.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-09 20:40:21.959696"], ["key", "environment"]]
1178
-  (2.1ms) COMMIT
1179
- SQL (3.7ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1180
- GraphqlApi::Models::PublicSubscription Load (3.2ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1181
-  (1.8ms) SELECT pg_try_advisory_lock(3732957763885691250)
1182
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1183
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1184
-  (1.7ms) BEGIN
1185
-  (1.7ms) SHOW statement_timeout
1186
-  (1.7ms) SET statement_timeout TO '0ms'
1187
-  (2.2ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
1188
-  (3.1ms) ALTER TABLE "public_subscriptions" ADD "schema_key" character varying NOT NULL
1189
-  (1.5ms) SET statement_timeout TO '0'
1190
- ActiveRecord::SchemaMigration Create (1.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200611150212"]]
1191
-  (3.7ms) COMMIT
1192
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1193
-  (1.3ms) BEGIN
1194
-  (1.4ms) COMMIT
1195
-  (1.4ms) SELECT pg_advisory_unlock(3732957763885691250)
1196
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1197
- SQL (2.7ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1198
- GraphqlApi::Models::PublicSubscription Load (2.0ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1199
-  (1.6ms) SELECT pg_try_advisory_lock(3732957763885691250)
1200
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1201
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1202
-  (1.6ms) BEGIN
1203
-  (1.9ms) COMMIT
1204
-  (1.7ms) SELECT pg_advisory_unlock(3732957763885691250)
1205
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1206
- SQL (2.5ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1207
- GraphqlApi::Models::PublicSubscription Load (2.1ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1208
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1209
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1210
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1211
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1212
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1213
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1214
-  (188.5ms) DROP DATABASE IF EXISTS "graphql_api_test"
1215
-  (379.6ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1216
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "citext"
1217
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1218
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1219
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1220
-  (1.5ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1221
-  (20.9ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1222
-  (5.1ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1223
-  (1.8ms) SELECT current_schema
1224
-  (2.5ms) SELECT a.attname AS column_name
1225
- FROM pg_catalog.pg_attribute a
1226
- WHERE a.attrelid = (
1227
- SELECT c.oid
1228
- FROM pg_catalog.pg_class c
1229
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1230
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscription_events)$'
1231
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1232
- )
1233
- AND a.attnum > 0 AND NOT a.attisdropped
1234
- ORDER BY a.attnum;
1235
- 
1236
-  (1.6ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'id') AS result
1237
- 
1238
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'public_subscription_id') AS result
1239
- 
1240
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'partition_key') AS result
1241
- 
1242
-  (1.6ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'topic_name') AS result
1243
- 
1244
-  (1.6ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'tenant_id') AS result
1245
- 
1246
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'event_json') AS result
1247
- 
1248
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'created_at') AS result
1249
- 
1250
-  (1.5ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1251
-  (9.5ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "schema_key" character varying NOT NULL)
1252
-  (5.4ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1253
-  (1.5ms) SELECT current_schema
1254
-  (1.9ms) SELECT a.attname AS column_name
1255
- FROM pg_catalog.pg_attribute a
1256
- WHERE a.attrelid = (
1257
- SELECT c.oid
1258
- FROM pg_catalog.pg_class c
1259
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1260
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscriptions)$'
1261
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1262
- )
1263
- AND a.attnum > 0 AND NOT a.attisdropped
1264
- ORDER BY a.attnum;
1265
- 
1266
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'id') AS result
1267
- 
1268
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'subscription_group_id') AS result
1269
- 
1270
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'event_type') AS result
1271
- 
1272
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'topic_name') AS result
1273
- 
1274
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'query') AS result
1275
- 
1276
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'created_at') AS result
1277
- 
1278
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'updated_at') AS result
1279
- 
1280
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'schema_key') AS result
1281
- 
1282
-  (8.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1283
-  (1.4ms) SELECT current_schema
1284
-  (1.8ms) SELECT a.attname AS column_name
1285
- FROM pg_catalog.pg_attribute a
1286
- WHERE a.attrelid = (
1287
- SELECT c.oid
1288
- FROM pg_catalog.pg_class c
1289
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1290
- WHERE c.relname OPERATOR(pg_catalog.~) '^(schema_migrations)$'
1291
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1292
- )
1293
- AND a.attnum > 0 AND NOT a.attisdropped
1294
- ORDER BY a.attnum;
1295
- 
1296
-  (1.4ms) SELECT pg_get_serial_sequence('public.schema_migrations', 'version') AS result
1297
- 
1298
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1299
-  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
1300
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
1301
- (20200604203932),
1302
- (20200303193414);
1303
-
1304
- 
1305
-  (8.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1306
-  (1.8ms) SELECT current_schema
1307
-  (1.9ms) SELECT a.attname AS column_name
1308
- FROM pg_catalog.pg_attribute a
1309
- WHERE a.attrelid = (
1310
- SELECT c.oid
1311
- FROM pg_catalog.pg_class c
1312
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1313
- WHERE c.relname OPERATOR(pg_catalog.~) '^(ar_internal_metadata)$'
1314
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1315
- )
1316
- AND a.attnum > 0 AND NOT a.attisdropped
1317
- ORDER BY a.attnum;
1318
- 
1319
-  (1.5ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'key') AS result
1320
- 
1321
-  (1.2ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'value') AS result
1322
- 
1323
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'created_at') AS result
1324
- 
1325
-  (1.2ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'updated_at') AS result
1326
- 
1327
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1328
-  (1.4ms) BEGIN
1329
- ActiveRecord::InternalMetadata Create (2.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-11 15:17:44.979682"], ["updated_at", "2020-06-11 15:17:44.979682"]]
1330
-  (2.4ms) COMMIT
1331
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1332
-  (1.7ms) BEGIN
1333
- ActiveRecord::InternalMetadata Update (1.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-11 15:17:44.992037"], ["key", "environment"]]
1334
-  (2.1ms) COMMIT
1335
- SQL (2.7ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1336
- GraphqlApi::Models::PublicSubscription Load (2.6ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1337
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1338
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1339
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1340
-  (1.2ms) SELECT pg_try_advisory_lock(3732957763885691250)
1341
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1342
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1343
-  (1.2ms) BEGIN
1344
-  (1.5ms) SHOW statement_timeout
1345
-  (1.1ms) SET statement_timeout TO '0ms'
1346
-  (1.6ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
1347
-  (4.7ms) ALTER TABLE "public_subscriptions" DROP COLUMN "schema_key"
1348
-  (1.2ms) SET statement_timeout TO '0'
1349
- ActiveRecord::SchemaMigration Destroy (1.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20200611150212"]]
1350
-  (1.9ms) COMMIT
1351
-  (1.1ms) SELECT pg_advisory_unlock(3732957763885691250)
1352
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1353
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1354
- GraphqlApi::Models::PublicSubscription Load (2.1ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1355
-  (1.9ms) SELECT pg_try_advisory_lock(3732957763885691250)
1356
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1357
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1358
-  (1.4ms) BEGIN
1359
-  (1.4ms) SHOW statement_timeout
1360
-  (1.3ms) SET statement_timeout TO '0ms'
1361
-  (1.8ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
1362
-  (2.4ms) ALTER TABLE "public_subscriptions" ADD "schema_key" text
1363
- SQL (2.4ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1364
- GraphqlApi::Models::PublicSubscription Load (2.0ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1365
-  (1.2ms) SELECT pg_try_advisory_lock(3732957763885691250)
1366
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1367
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1368
-  (1.3ms) BEGIN
1369
-  (1.3ms) SHOW statement_timeout
1370
-  (1.4ms) SET statement_timeout TO '0ms'
1371
-  (2.0ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
1372
-  (2.6ms) ALTER TABLE "public_subscriptions" ADD "schema_key" text
1373
-  (1.9ms) SET statement_timeout TO '0'
1374
-  (2.1ms) ROLLBACK
1375
-  (1.7ms) SELECT pg_advisory_unlock(3732957763885691250)
1376
- SQL (2.0ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1377
- GraphqlApi::Models::PublicSubscription Load (2.1ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1378
-  (1.2ms) SELECT pg_try_advisory_lock(3732957763885691250)
1379
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1380
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1381
-  (1.4ms) BEGIN
1382
-  (1.5ms) SHOW statement_timeout
1383
-  (1.3ms) SET statement_timeout TO '0ms'
1384
-  (1.8ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
1385
-  (2.3ms) ALTER TABLE "public_subscriptions" ADD "schema_key" text
1386
-  (2.1ms) UPDATE public_subscriptions SET schema_key = SPLIT_PART(event_type, '::', 1)
1387
-  (1.2ms) SET statement_timeout TO '0'
1388
-  (1.5ms) ROLLBACK
1389
-  (1.5ms) SELECT pg_advisory_unlock(3732957763885691250)
1390
- SQL (3.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1391
- GraphqlApi::Models::PublicSubscription Load (2.7ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1392
-  (2.4ms) SELECT pg_try_advisory_lock(3732957763885691250)
1393
-  (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1394
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1395
-  (1.7ms) BEGIN
1396
-  (1.6ms) SHOW statement_timeout
1397
-  (2.0ms) SET statement_timeout TO '0ms'
1398
-  (2.2ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
1399
-  (2.0ms) ALTER TABLE "public_subscriptions" ADD "schema_key" text
1400
-  (1.9ms) UPDATE public_subscriptions SET schema_key = SPLIT_PART(event_type, '::', 1)
1401
-  (3.1ms) ALTER TABLE "public_subscriptions" ALTER COLUMN "schema_key" TYPE text, ALTER COLUMN "schema_key" SET NOT NULL
1402
-  (1.3ms) SET statement_timeout TO '0'
1403
- ActiveRecord::SchemaMigration Create (2.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200611150212"]]
1404
-  (4.7ms) COMMIT
1405
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1406
-  (1.9ms) BEGIN
1407
-  (1.3ms) COMMIT
1408
-  (1.3ms) SELECT pg_advisory_unlock(3732957763885691250)
1409
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1410
- SQL (4.8ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1411
- GraphqlApi::Models::PublicSubscription Load (4.3ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1412
-  (1.5ms) SELECT pg_try_advisory_lock(3732957763885691250)
1413
-  (4.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1414
- ActiveRecord::InternalMetadata Load (3.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1415
-  (1.7ms) BEGIN
1416
-  (1.4ms) COMMIT
1417
-  (1.5ms) SELECT pg_advisory_unlock(3732957763885691250)
1418
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1419
-  (2.2ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1420
-  (443.4ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1421
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "citext"
1422
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1423
- SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1424
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1425
-  (2.5ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1426
-  (10.6ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1427
-  (3.8ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1428
-  (1.2ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1429
-  (6.3ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "schema_key" text NOT NULL)
1430
-  (3.5ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1431
-  (9.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1432
-  (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1433
-  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
1434
-  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES
1435
- (20200604203932),
1436
- (20200303193414);
1437
-
1438
- 
1439
-  (8.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1440
- ActiveRecord::InternalMetadata Load (2.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1441
-  (1.7ms) BEGIN
1442
- ActiveRecord::InternalMetadata Create (2.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-24 19:38:19.086548"], ["updated_at", "2020-06-24 19:38:19.086548"]]
1443
-  (1.8ms) COMMIT
1444
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1445
-  (2.5ms) BEGIN
1446
- ActiveRecord::InternalMetadata Update (2.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-24 19:38:19.115578"], ["key", "environment"]]
1447
-  (2.6ms) COMMIT
1448
-  (340.7ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1449
-  (1.5ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1450
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "citext"
1451
- SQL (1.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1452
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1453
- SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1454
-  (2.0ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1455
-  (13.3ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1456
-  (3.3ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1457
-  (1.1ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1458
-  (5.5ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "schema_key" text NOT NULL)
1459
-  (3.5ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1460
-  (5.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1461
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1462
-  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
1463
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
1464
- (20200604203932),
1465
- (20200303193414);
1466
-
1467
- 
1468
-  (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1469
- ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1470
43
   (1.0ms) BEGIN
1471
- ActiveRecord::InternalMetadata Create (1.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 18:43:10.061580"], ["updated_at", "2020-06-25 18:43:10.061580"]]
1472
-  (1.5ms) COMMIT
1473
- ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1474
-  (2.1ms) BEGIN
1475
-  (1.5ms) COMMIT
1476
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "citext"
1477
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1478
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1479
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1480
-  (5.7ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1481
-  (9.8ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1482
-  (4.3ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1483
-  (3.4ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1484
-  (5.7ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "schema_key" text NOT NULL)
1485
-  (3.5ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1486
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1487
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1488
-  (1.2ms) BEGIN
1489
- ActiveRecord::InternalMetadata Update (2.1ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "development"], ["updated_at", "2020-06-25 18:43:10.198067"], ["key", "environment"]]
1490
-  (1.8ms) COMMIT
1491
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1492
-  (1.4ms) BEGIN
1493
- ActiveRecord::InternalMetadata Update (1.3ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-25 18:43:10.208069"], ["key", "environment"]]
1494
-  (1.7ms) COMMIT
1495
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1496
- SQL (2.6ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1497
- NulogyMessageBusProducer::PublicSubscription Load (2.2ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1498
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1499
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1500
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1501
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1502
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1503
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1504
-  (121.6ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
1505
-  (119.1ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1506
-  (314.8ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1507
-  (317.6ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1508
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "citext"
1509
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1510
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1511
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1512
-  (1.9ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1513
-  (9.3ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1514
-  (3.7ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1515
-  (1.3ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1516
-  (6.3ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "schema_key" text NOT NULL)
1517
-  (4.5ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1518
-  (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1519
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1520
-  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
1521
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES
1522
- (20200604203932),
1523
- (20200303193414);
1524
-
1525
- 
1526
-  (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1527
- ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1528
-  (1.5ms) BEGIN
1529
- ActiveRecord::InternalMetadata Create (1.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 19:07:28.084859"], ["updated_at", "2020-06-25 19:07:28.084859"]]
1530
-  (2.0ms) COMMIT
1531
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1532
-  (1.3ms) BEGIN
1533
-  (1.3ms) COMMIT
1534
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "citext"
1535
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1536
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1537
- SQL (2.1ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1538
-  (1.5ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1539
-  (10.5ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1540
-  (3.6ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1541
-  (1.9ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1542
-  (6.2ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "schema_key" text NOT NULL)
1543
-  (3.4ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1544
-  (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1545
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1546
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
1547
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES
1548
- (20200604203932),
1549
- (20200303193414);
1550
-
1551
- 
1552
-  (7.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1553
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1554
-  (1.2ms) BEGIN
1555
- ActiveRecord::InternalMetadata Create (1.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 19:07:28.220975"], ["updated_at", "2020-06-25 19:07:28.220975"]]
1556
-  (1.6ms) COMMIT
1557
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1558
-  (1.2ms) BEGIN
1559
- ActiveRecord::InternalMetadata Update (1.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-25 19:07:28.230198"], ["key", "environment"]]
1560
-  (1.7ms) COMMIT
1561
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1562
- SQL (2.6ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1563
- NulogyMessageBusProducer::PublicSubscription Load (2.2ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1564
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1565
-  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1566
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1567
-  (2.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1568
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1569
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1570
-  (113.4ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
1571
-  (116.3ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1572
-  (323.1ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1573
-  (312.3ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1574
- SQL (2.3ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1575
-  (10.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1576
-  (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1577
-  (1.3ms) SELECT pg_try_advisory_lock(3053653019973222135)
1578
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1579
- Migrating to AddPublicSubscriptions (20200303193414)
1580
-  (2.3ms) BEGIN
1581
-  (2.5ms) ROLLBACK
1582
-  (1.7ms) SELECT pg_advisory_unlock(3053653019973222135)
1583
- SQL (2.5ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1584
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1585
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1586
-  (111.6ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
1587
-  (117.2ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1588
-  (320.2ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1589
-  (295.5ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1590
- SQL (2.4ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1591
-  (8.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1592
-  (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1593
-  (1.1ms) SELECT pg_try_advisory_lock(3053653019973222135)
1594
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1595
- Migrating to AddPublicSubscriptions (20200303193414)
1596
-  (1.4ms) BEGIN
1597
-  (6.4ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1598
-  (3.6ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1599
-  (5.8ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1600
-  (3.6ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1601
- ActiveRecord::SchemaMigration Create (1.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200303193414"]]
1602
-  (1.8ms) COMMIT
1603
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
1604
-  (1.2ms) BEGIN
1605
-  (1.4ms)  UPDATE public_subscriptions
1606
- SET query = REGEXP_REPLACE(query, '(W)uuid(W)', 'id', 'g')
1607
- 
1608
- ActiveRecord::SchemaMigration Create (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200604203932"]]
1609
-  (2.1ms) COMMIT
1610
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1611
-  (1.4ms) BEGIN
1612
-  (1.9ms) ALTER TABLE "public_subscriptions" ADD "schema_key" text
1613
-  (1.8ms) UPDATE public_subscriptions
1614
- SET schema_key = SPLIT_PART(event_type, '::', 1),
1615
- event_type = SPLIT_PART(event_type, '::', 2)
1616
- 
1617
-  (1.5ms) ALTER TABLE "public_subscriptions" ALTER COLUMN "schema_key" TYPE text, ALTER COLUMN "schema_key" SET NOT NULL
1618
- ActiveRecord::SchemaMigration Create (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200611150212"]]
44
+ ActiveRecord::InternalMetadata Update (1.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-07-13 15:43:44.368936"], ["key", "environment"]]
1619
45
   (1.6ms) COMMIT
1620
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1621
-  (1.5ms) BEGIN
1622
- ActiveRecord::InternalMetadata Create (2.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 19:24:21.527611"], ["updated_at", "2020-06-25 19:24:21.527611"]]
1623
-  (1.4ms) COMMIT
1624
-  (1.5ms) SELECT pg_advisory_unlock(3053653019973222135)
1625
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1626
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1627
- NulogyMessageBusProducer::PublicSubscription Load (2.4ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1628
-  (1.2ms) SELECT pg_try_advisory_lock(3053653019973222135)
1629
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1630
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1631
-  (1.5ms) BEGIN
1632
-  (1.2ms) COMMIT
1633
-  (1.3ms) SELECT pg_advisory_unlock(3053653019973222135)
1634
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1635
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1636
- NulogyMessageBusProducer::PublicSubscription Load (1.9ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1637
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1638
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1639
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1640
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1641
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1642
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1643
-  (120.2ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
1644
-  (113.4ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1645
-  (318.0ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1646
-  (315.1ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1647
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1648
-  (10.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1649
-  (6.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1650
-  (1.3ms) SELECT pg_try_advisory_lock(3053653019973222135)
1651
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1652
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1653
-  (1.4ms) SELECT pg_advisory_unlock(3053653019973222135)
1654
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1655
- SQL (2.1ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1656
-  (1.4ms) SELECT pg_try_advisory_lock(3053653019973222135)
1657
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1658
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1659
-  (1.3ms) BEGIN
1660
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1661
-  (6.9ms) CREATE TABLE "nulogy_message_bus_producer_public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1662
-  (2.9ms) ROLLBACK
1663
-  (1.6ms) SELECT pg_advisory_unlock(3053653019973222135)
1664
- SQL (2.1ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1665
-  (1.4ms) SELECT pg_try_advisory_lock(3053653019973222135)
1666
46
   (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1667
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1668
-  (1.2ms) BEGIN
1669
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1670
-  (7.0ms) CREATE TABLE "nulogy_message_bus_producer_public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1671
-  (1.7ms) ROLLBACK
1672
-  (1.2ms) SELECT pg_advisory_unlock(3053653019973222135)
1673
- SQL (1.9ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1674
-  (1.6ms) SELECT pg_try_advisory_lock(3053653019973222135)
1675
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1676
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1677
-  (1.1ms) BEGIN
1678
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1679
-  (7.2ms) CREATE TABLE "nulogy_message_bus_producer_public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1680
-  (1.4ms) ROLLBACK
1681
-  (1.5ms) SELECT pg_advisory_unlock(3053653019973222135)
1682
- SQL (1.9ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1683
-  (1.5ms) SELECT pg_try_advisory_lock(3053653019973222135)
1684
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1685
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1686
-  (1.4ms) BEGIN
1687
- SQL (2.2ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1688
-  (7.0ms) CREATE TABLE "nulogy_message_bus_producer_public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1689
-  (3.2ms) CREATE INDEX "index_nulogy_mb_producer_public_subscriptions_on_event_type" ON "nulogy_message_bus_producer_public_subscriptions" ("event_type")
1690
-  (5.0ms) CREATE TABLE "nulogy_message_bus_producer_public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1691
-  (1.8ms) ROLLBACK
1692
-  (1.9ms) SELECT pg_advisory_unlock(3053653019973222135)
1693
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1694
-  (1.5ms) SELECT pg_try_advisory_lock(3053653019973222135)
1695
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1696
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1697
-  (1.1ms) BEGIN
1698
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1699
-  (7.4ms) CREATE TABLE "nulogy_message_bus_producer_public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1700
-  (2.7ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "nulogy_message_bus_producer_public_subscriptions" ("event_type")
1701
-  (6.3ms) CREATE TABLE "nulogy_message_bus_producer_public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1702
-  (3.1ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "nulogy_message_bus_producer_public_subscription_events" ("created_at")
1703
- ActiveRecord::SchemaMigration Create (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200611150212"]]
1704
-  (2.5ms) COMMIT
1705
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1706
-  (1.1ms) BEGIN
1707
- ActiveRecord::InternalMetadata Create (1.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 19:54:32.371335"], ["updated_at", "2020-06-25 19:54:32.371335"]]
1708
-  (1.5ms) COMMIT
1709
-  (0.9ms) SELECT pg_advisory_unlock(3053653019973222135)
1710
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1711
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1712
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1713
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1714
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1715
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1716
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1717
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1718
-  (114.9ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
1719
-  (116.5ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1720
-  (319.5ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1721
-  (301.0ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1722
-  (7.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1723
-  (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1724
-  (1.2ms) SELECT pg_try_advisory_lock(3053653019973222135)
1725
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1726
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1727
-  (1.3ms) BEGIN
1728
- SQL (2.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1729
-  (5.9ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1730
-  (2.8ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1731
-  (5.5ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1732
-  (3.2ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1733
- ActiveRecord::SchemaMigration Create (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200611150212"]]
1734
-  (2.0ms) COMMIT
1735
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1736
-  (1.5ms) BEGIN
1737
- ActiveRecord::InternalMetadata Create (1.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 20:02:34.049808"], ["updated_at", "2020-06-25 20:02:34.049808"]]
1738
-  (1.9ms) COMMIT
1739
-  (1.5ms) SELECT pg_advisory_unlock(3053653019973222135)
1740
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1741
- SQL (2.3ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1742
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1743
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1744
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1745
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1746
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1747
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1748
-  (117.1ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1749
-  (299.7ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1750
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "citext"
1751
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1752
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1753
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1754
-  (1.5ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
1755
-  (9.0ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1756
-  (3.6ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1757
-  (1.5ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
1758
-  (5.7ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1759
-  (3.7ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1760
-  (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1761
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1762
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
1763
-  (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1764
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1765
-  (1.5ms) BEGIN
1766
- ActiveRecord::InternalMetadata Create (1.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 20:05:37.681460"], ["updated_at", "2020-06-25 20:05:37.681460"]]
1767
-  (1.9ms) COMMIT
1768
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1769
-  (1.1ms) BEGIN
1770
- ActiveRecord::InternalMetadata Update (1.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-25 20:05:37.691325"], ["key", "environment"]]
1771
-  (1.8ms) COMMIT