@nsshunt/stsdatamanagement 1.18.172 → 1.18.174
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 +21 -20
- package/package.json +1 -1
package/db-scripts/builddb.sql
CHANGED
|
@@ -58,8 +58,8 @@ CREATE TABLE stsresfhirlink (
|
|
|
58
58
|
COMPOSITE_HASH_EXACT BIGINT
|
|
59
59
|
);
|
|
60
60
|
|
|
61
|
-
CREATE INDEX idx_stsresfhirlink_type_id
|
|
62
|
-
ON stsresfhirlink (
|
|
61
|
+
--CREATE INDEX idx_stsresfhirlink_type_id
|
|
62
|
+
-- ON stsresfhirlink (RES_ID, RES_TYPE);
|
|
63
63
|
|
|
64
64
|
CREATE INDEX idx_stsresfhirlink_identity
|
|
65
65
|
ON stsresfhirlink (SP_NAME, RES_TYPE);
|
|
@@ -94,8 +94,8 @@ CREATE TABLE stsresfhirstring (
|
|
|
94
94
|
COMPOSITE_HASH_EXACT BIGINT
|
|
95
95
|
);
|
|
96
96
|
|
|
97
|
-
CREATE INDEX idx_stsresfhirstring_type_id
|
|
98
|
-
ON stsresfhirstring (
|
|
97
|
+
--CREATE INDEX idx_stsresfhirstring_type_id
|
|
98
|
+
-- ON stsresfhirstring (RES_ID, RES_TYPE);
|
|
99
99
|
|
|
100
100
|
CREATE INDEX idx_stsresfhirstring_hash_identity
|
|
101
101
|
ON stsresfhirstring (HASH_IDENTITY);
|
|
@@ -137,8 +137,8 @@ CREATE TABLE stsresfhirtoken (
|
|
|
137
137
|
COMPOSITE_HASH_EXACT BIGINT
|
|
138
138
|
);
|
|
139
139
|
|
|
140
|
-
CREATE INDEX idx_stsresfhirtoken_type_id
|
|
141
|
-
ON stsresfhirtoken (
|
|
140
|
+
--CREATE INDEX idx_stsresfhirtoken_type_id
|
|
141
|
+
-- ON stsresfhirtoken (RES_ID, RES_TYPE);
|
|
142
142
|
|
|
143
143
|
CREATE INDEX idx_stsresfhirtoken_hash_identity
|
|
144
144
|
ON stsresfhirtoken (HASH_IDENTITY);
|
|
@@ -183,8 +183,8 @@ CREATE TABLE stsresfhirquantity (
|
|
|
183
183
|
COMPOSITE_HASH_EXACT BIGINT
|
|
184
184
|
);
|
|
185
185
|
|
|
186
|
-
CREATE INDEX idx_stsresfhirquantity_type_id
|
|
187
|
-
ON stsresfhirquantity (
|
|
186
|
+
--CREATE INDEX idx_stsresfhirquantity_type_id
|
|
187
|
+
-- ON stsresfhirquantity (RES_ID, RES_TYPE);
|
|
188
188
|
|
|
189
189
|
CREATE INDEX idx_stsresfhirquantity_hash_identity
|
|
190
190
|
ON stsresfhirquantity (HASH_IDENTITY);
|
|
@@ -225,8 +225,8 @@ CREATE TABLE stsresfhirnumber (
|
|
|
225
225
|
COMPOSITE_HASH_EXACT BIGINT
|
|
226
226
|
);
|
|
227
227
|
|
|
228
|
-
CREATE INDEX idx_stsresfhirnumber_type_id
|
|
229
|
-
ON stsresfhirnumber (
|
|
228
|
+
--CREATE INDEX idx_stsresfhirnumber_type_id
|
|
229
|
+
-- ON stsresfhirnumber (RES_ID, RES_TYPE);
|
|
230
230
|
|
|
231
231
|
CREATE INDEX idx_stsresfhirnumber_hash_identity
|
|
232
232
|
ON stsresfhirnumber (HASH_IDENTITY);
|
|
@@ -256,12 +256,12 @@ CREATE TABLE stsresfhiruri (
|
|
|
256
256
|
COMPOSITE_HASH_EXACT BIGINT
|
|
257
257
|
);
|
|
258
258
|
|
|
259
|
+
--CREATE INDEX idx_stsresfhiruri_type_id
|
|
260
|
+
-- ON stsresfhiruri (RES_ID, RES_TYPE);
|
|
261
|
+
|
|
259
262
|
CREATE INDEX idx_stsresfhiruri_hash_identity
|
|
260
263
|
ON stsresfhiruri (HASH_IDENTITY);
|
|
261
264
|
|
|
262
|
-
CREATE INDEX idx_stsresfhiruri_type_id
|
|
263
|
-
ON stsresfhiruri (RES_TYPE, RES_ID);
|
|
264
|
-
|
|
265
265
|
CREATE INDEX idx_stsresfhiruri_hash_uri
|
|
266
266
|
ON stsresfhiruri (HASH_URI, SP_URI)
|
|
267
267
|
WHERE SP_URI IS NOT NULL;
|
|
@@ -292,8 +292,9 @@ CREATE TABLE stsresfhirdate (
|
|
|
292
292
|
COMPOSITE TEXT,
|
|
293
293
|
COMPOSITE_HASH_EXACT BIGINT
|
|
294
294
|
);
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
|
|
296
|
+
--CREATE INDEX idx_stsresfhirdate_type_id
|
|
297
|
+
-- ON stsresfhirdate (RES_ID, RES_TYPE);
|
|
297
298
|
|
|
298
299
|
CREATE INDEX idx_stsresfhirdate_hash_identity
|
|
299
300
|
ON stsresfhirdate (HASH_IDENTITY);
|
|
@@ -327,12 +328,12 @@ CREATE TABLE stsresfhircoords (
|
|
|
327
328
|
COMPOSITE_HASH_EXACT BIGINT
|
|
328
329
|
);
|
|
329
330
|
|
|
331
|
+
--CREATE INDEX idx_stsresfhircoords_type_id
|
|
332
|
+
-- ON stsresfhircoords (RES_ID, RES_TYPE);
|
|
333
|
+
|
|
330
334
|
CREATE INDEX idx_stsresfhircoords_hash_identity
|
|
331
335
|
ON stsresfhircoords (HASH_IDENTITY);
|
|
332
336
|
|
|
333
|
-
CREATE INDEX idx_stsresfhircoords_type_id
|
|
334
|
-
ON stsresfhircoords (RES_TYPE, RES_ID);
|
|
335
|
-
|
|
336
337
|
CREATE INDEX idx_stsresfhircoords_hash_identity_lat_long
|
|
337
338
|
ON stsresfhircoords (HASH_IDENTITY, SP_LATITUDE, SP_LONGITUDE)
|
|
338
339
|
WHERE SP_LATITUDE IS NOT NULL AND SP_LONGITUDE IS NOT NULL;
|
|
@@ -357,8 +358,8 @@ CREATE TABLE stsresfhircombo (
|
|
|
357
358
|
UNIQUE (RES_ID, SP_NAME, IDX_STRING)
|
|
358
359
|
);
|
|
359
360
|
|
|
360
|
-
CREATE INDEX idx_stsresfhircombo_type_id
|
|
361
|
-
ON stsresfhircombo (
|
|
361
|
+
--CREATE INDEX idx_stsresfhircombo_type_id
|
|
362
|
+
-- ON stsresfhircombo (RES_ID, RES_TYPE);
|
|
362
363
|
|
|
363
364
|
CREATE INDEX idx_stsresfhircombo_hash_identity
|
|
364
365
|
ON stsresfhircombo (HASH_IDENTITY);
|