@nsshunt/stsdatamanagement 1.18.133 → 1.18.135
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 +2 -0
- package/package.json +1 -1
package/db-scripts/builddb.sql
CHANGED
|
@@ -24,6 +24,7 @@ CREATE TABLE stsresfhirver (
|
|
|
24
24
|
RES_ID TEXT NOT NULL,
|
|
25
25
|
RES_TYPE TEXT NOT NULL,
|
|
26
26
|
RES_VER INTEGER NOT NULL,
|
|
27
|
+
OPERATION TEXT NOT NULL, -- operation that created this record (CREATE, PUT, PATCH, DELETE)
|
|
27
28
|
RES TEXT NOT NULL,
|
|
28
29
|
-- Uniqueness of each version per resource:
|
|
29
30
|
CONSTRAINT uq_stsresfhirver_triplet UNIQUE (RES_TYPE, RES_ID, RES_VER),
|
|
@@ -130,6 +131,7 @@ CREATE TABLE stsresfhirquantity (
|
|
|
130
131
|
|
|
131
132
|
CREATE INDEX idx_stsresfhirquantity_hash_identity ON stsresfhirquantity (HASH_IDENTITY);
|
|
132
133
|
CREATE INDEX idx_stsresfhirquantity_hash_identity_value ON stsresfhirquantity (HASH_IDENTITY, SP_VALUE);
|
|
134
|
+
CREATE INDEX idx_stsresfhirquantity_hash_identity_sys_units_value ON stsresfhirquantity (HASH_IDENTITY, SP_SYSTEM, SP_UNITS, SP_VALUE);
|
|
133
135
|
CREATE INDEX idx_stsresfhirquantity_hash_units ON stsresfhirquantity (HASH_IDENTITY_AND_UNITS, SP_UNITS);
|
|
134
136
|
CREATE INDEX idx_stsresfhirquantity_hash_sys_units ON stsresfhirquantity (HASH_IDENTITY_SYS_UNITS, SP_SYSTEM, SP_UNITS);
|
|
135
137
|
|