We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fce6c0c commit 4bafb75Copy full SHA for 4bafb75
4 files changed
snprc_ehr/resources/etls/SndPackagesAndSuperPkgs.xml
@@ -33,11 +33,6 @@
33
<description>Copy to Staging table</description>
34
<source schemaName="snprcSrc" queryName="v_sndGetAllSuperPkgs" />
35
<destination schemaName="snprc_ehr" queryName="SndSuperPackageStaging" bulkLoad="true" targetOption="merge">
36
- <alternateKeys>
37
- <column name="TopLevelPkgId"/>
38
- <column name = "SuperPkgId"/>
39
- <column name="ObjectId"/>
40
- </alternateKeys>
41
<columnTransforms>
42
<column source="createdBy" target="createdBy" transformClass="org.labkey.snprc_ehr.columnTransforms.UserTransform"/>
43
<column source="modifiedBy" target="modifiedBy" transformClass="org.labkey.snprc_ehr.columnTransforms.UserTransform"/>
snprc_ehr/resources/schemas/dbscripts/sqlserver/snprc_ehr-25.000-25.001.sql
@@ -0,0 +1,27 @@
1
+EXEC core.fn_dropifexists @objname = 'SndSuperPackageStaging', @objschema = 'snprc_ehr', @objtype = 'TABLE';
2
+
3
+CREATE TABLE snprc_ehr.SndSuperPackageStaging
4
+(
5
+ TopLevelPkgId INTEGER NOT NULL,
6
+ SuperPkgId INTEGER NOT NULL,
7
+ ParentSuperPkgId INTEGER NULL,
8
+ PkgId INTEGER NOT NULL,
9
+ TreePath VARCHAR(800) NOT NULL,
10
+ SuperPkgPath VARCHAR(MAX) NOT NULL,
11
+ SortOrder INTEGER NULL,
12
+ Required INTEGER NULL,
13
+ Description VARCHAR(MAX) NOT NULL,
14
+ Narrative VARCHAR(MAX) NOT NULL,
15
+ Active INTEGER NOT NULL,
16
+ Repeatable INTEGER NOT NULL,
17
+ Level INTEGER NOT NULL,
18
+ Created DATETIME NOT NULL,
19
+ CreatedBy USERID NOT NULL,
20
+ Modified DATETIME NOT NULL,
21
+ ModifiedBy USERID NOT NULL,
22
+ diModified DATETIME NOT NULL,
23
+ ObjectId UNIQUEIDENTIFIER NOT NULL
24
25
+ CONSTRAINT PK_SndSuperPackageStaging PRIMARY KEY CLUSTERED ( TopLevelPkgId, SuperPkgId, TreePath)
26
+);
27
+GO
snprc_ehr/resources/schemas/snprc_ehr.xml
@@ -2374,7 +2374,7 @@
2374
</table>
2375
<table tableName="SndSuperPackageStaging" tableDbType="TABLE" useColumnOrder="true">
2376
<tableTitle>Super PackageStaging</tableTitle>
2377
- <pkColumnName>TopLevelPkgId, SuperPkgId</pkColumnName>
+ <pkColumnName>TopLevelPkgId, SuperPkgId, TreePath</pkColumnName>
2378
<columns>
2379
<column columnName="TopLevelPkgId"/>
2380
<column columnName="SuperPkgId"/>
snprc_ehr/src/org/labkey/snprc_ehr/SNPRC_EHRModule.java
@@ -118,7 +118,7 @@ public String getName()
118
@Override
119
public @Nullable Double getSchemaVersion()
120
{
121
- return 25.000;
+ return 25.001;
122
}
123
124
0 commit comments