zuora_connect 3.0.2.pre.l → 3.0.2.pre.m
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/sql/refresh_aggregate_table.txt +6 -6
- data/lib/zuora_connect/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e7c7ce2e0e78ef1a25360865897abc69fa2c3f21b80e1ca42cee49a85c9cb01
|
|
4
|
+
data.tar.gz: 71882230203de07dada155bcc578f7256bd5db78b868ed3a8a58dca134d7559d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 044cf34d49fc00ef25d5a6ede5069daef812b5344a6b33a854cdb02e8129e7e92f7b80c8c3a151183ecbffaf91a562e55f6816bdd8ec57a64d2f699e20eca9d5
|
|
7
|
+
data.tar.gz: 739faf051944ccf5f6db4ab88dfee35408939a939c72784902146af9dc98864045b57551e1b967933cb5984240fa00e783bbceb13073bbc4ba224ad37ae96557
|
|
@@ -18,7 +18,7 @@ BEGIN
|
|
|
18
18
|
|
|
19
19
|
FOR schema IN EXECUTE
|
|
20
20
|
format(
|
|
21
|
-
'SELECT
|
|
21
|
+
'SELECT nspname FROM pg_catalog.pg_namespace where nspname ~ ''^[0-9]+$'''
|
|
22
22
|
)
|
|
23
23
|
LOOP
|
|
24
24
|
IF NOT created THEN
|
|
@@ -26,7 +26,7 @@ BEGIN
|
|
|
26
26
|
EXECUTE format(
|
|
27
27
|
'CREATE TABLE "public".%I (LIKE %I.%I)',
|
|
28
28
|
aggregate_table_name,
|
|
29
|
-
schema.
|
|
29
|
+
schema.nspname, table_name
|
|
30
30
|
);
|
|
31
31
|
-- Add a special `schema_name` column, which we'll populate with the name of the schema
|
|
32
32
|
-- each row originated from
|
|
@@ -68,17 +68,17 @@ BEGIN
|
|
|
68
68
|
-- and insert them into our new aggregate table
|
|
69
69
|
EXECUTE format(
|
|
70
70
|
'SELECT string_agg(column_name, '','') from information_schema.columns where table_name = ''%s'' AND table_schema = ''%s''',
|
|
71
|
-
table_name, schema.
|
|
71
|
+
table_name, schema.nspname
|
|
72
72
|
) into fields_order;
|
|
73
73
|
|
|
74
|
-
raise notice 'Importing Schema %', schema.
|
|
74
|
+
raise notice 'Importing Schema %', schema.nspname;
|
|
75
75
|
|
|
76
76
|
EXECUTE format(
|
|
77
77
|
'INSERT INTO "public".%I (schema_name, %s) (SELECT ''%s'' AS schema_name, * FROM %I.%I %s )',
|
|
78
78
|
aggregate_table_name,
|
|
79
79
|
fields_order,
|
|
80
|
-
schema.
|
|
81
|
-
schema.
|
|
80
|
+
schema.nspname,
|
|
81
|
+
schema.nspname, table_name,
|
|
82
82
|
filter
|
|
83
83
|
);
|
|
84
84
|
END LOOP;
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zuora_connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.2.pre.
|
|
4
|
+
version: 3.0.2.pre.m
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Connect Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: apartment
|
|
@@ -445,7 +445,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
445
445
|
- !ruby/object:Gem::Version
|
|
446
446
|
version: 1.3.1
|
|
447
447
|
requirements: []
|
|
448
|
-
rubygems_version: 3.2.
|
|
448
|
+
rubygems_version: 3.2.32
|
|
449
449
|
signing_key:
|
|
450
450
|
specification_version: 4
|
|
451
451
|
summary: Summary of Connect.
|