@nsshunt/stsdatamanagement 1.18.102 → 1.18.103
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.
- package/db-scripts/builddb.sql +7 -8
- package/package.json +1 -1
package/db-scripts/builddb.sql
CHANGED
|
@@ -74,16 +74,15 @@ CREATE INDEX stsresource_resname_validto
|
|
|
74
74
|
|
|
75
75
|
CREATE INDEX stsresource_given
|
|
76
76
|
ON public.stsresource USING btree
|
|
77
|
-
(given COLLATE pg_catalog."default" ASC
|
|
78
|
-
|
|
77
|
+
(given COLLATE pg_catalog."default" ASC)
|
|
78
|
+
WHERE given IS NOT NULL;
|
|
79
79
|
|
|
80
80
|
-- DROP INDEX public.stsresource_family;
|
|
81
81
|
|
|
82
82
|
CREATE INDEX stsresource_family
|
|
83
83
|
ON public.stsresource USING btree
|
|
84
|
-
(family COLLATE pg_catalog."default" ASC
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
(family COLLATE pg_catalog."default" ASC)
|
|
85
|
+
WHERE family IS NOT NULL;
|
|
87
86
|
|
|
88
87
|
-- FUNCTION: public.create_stsresource(character varying, character varying, character varying)
|
|
89
88
|
|
|
@@ -114,7 +113,7 @@ BEGIN
|
|
|
114
113
|
begin
|
|
115
114
|
_resdesc_jsonb := _resdesc::jsonb;
|
|
116
115
|
_given := _resdesc_jsonb->'name'->0->>'given';
|
|
117
|
-
_family := _resdesc_jsonb->'name'->0->>'
|
|
116
|
+
_family := _resdesc_jsonb->'name'->0->>'family';
|
|
118
117
|
exception
|
|
119
118
|
when others then
|
|
120
119
|
raise exception 'Invalid JSON string: %', _resdesc;
|
|
@@ -198,7 +197,7 @@ BEGIN
|
|
|
198
197
|
begin
|
|
199
198
|
_resdesc_jsonb := _resdesc::jsonb;
|
|
200
199
|
_given := _resdesc_jsonb->'name'->0->>'given';
|
|
201
|
-
_family := _resdesc_jsonb->'name'->0->>'
|
|
200
|
+
_family := _resdesc_jsonb->'name'->0->>'family';
|
|
202
201
|
exception
|
|
203
202
|
when others then
|
|
204
203
|
raise exception 'Invalid JSON string: %', _resdesc;
|
|
@@ -261,7 +260,7 @@ BEGIN
|
|
|
261
260
|
begin
|
|
262
261
|
_resdesc_jsonb := _resdesc::jsonb;
|
|
263
262
|
_given := _resdesc_jsonb->'name'->0->>'given';
|
|
264
|
-
_family := _resdesc_jsonb->'name'->0->>'
|
|
263
|
+
_family := _resdesc_jsonb->'name'->0->>'family';
|
|
265
264
|
exception
|
|
266
265
|
when others then
|
|
267
266
|
raise exception 'Invalid JSON string: %', _resdesc;
|