You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: database update scripts/4.0.2-4.1.0.sql
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1051,11 +1051,11 @@ DECLARE
1051
1051
BEGIN
1052
1052
IF NOT EXISTS (
1053
1053
SELECT1FROMpublic.dim_mappingkeys
1054
-
WHERE xpath ='data/attributes/subjects/subject'AND parentref = (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subject'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite'))
1054
+
WHERE xpath ='data/attributes/subjects/subject'AND parentref = (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subjects'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite'))
VALUES ('Subject', '', '', false, false, 'data/attributes/subjects/subject', (select id frompublic.dim_mappingconceptswhere name ='DataCite'), (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subject'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite')));
1058
+
VALUES ('Subject', '', '', false, false, 'data/attributes/subjects/subject', (select id frompublic.dim_mappingconceptswhere name ='DataCite'), (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subjects'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite')));
1059
1059
1060
1060
GET DIAGNOSTICS cnt = ROW_COUNT;
1061
1061
RAISE NOTICE 'Inserted % rows', cnt;
@@ -1071,11 +1071,11 @@ DECLARE
1071
1071
BEGIN
1072
1072
IF NOT EXISTS (
1073
1073
SELECT1FROMpublic.dim_mappingkeys
1074
-
WHERE xpath ='data/attributes/subjects/subjectScheme'AND parentref = (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subject'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite'))
1074
+
WHERE xpath ='data/attributes/subjects/subjectScheme'AND parentref = (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subjects'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite'))
VALUES ('SubjectScheme', '', '', true, false, 'data/attributes/subjects/subjectScheme', (select id frompublic.dim_mappingconceptswhere name ='DataCite'), (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subject'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite')));
1078
+
VALUES ('SubjectScheme', '', '', true, false, 'data/attributes/subjects/subjectScheme', (select id frompublic.dim_mappingconceptswhere name ='DataCite'), (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subjects'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite')));
1079
1079
1080
1080
GET DIAGNOSTICS cnt = ROW_COUNT;
1081
1081
RAISE NOTICE 'Inserted % rows', cnt;
@@ -1091,11 +1091,11 @@ DECLARE
1091
1091
BEGIN
1092
1092
IF NOT EXISTS (
1093
1093
SELECT1FROMpublic.dim_mappingkeys
1094
-
WHERE xpath ='data/attributes/subjects/schemeUri'AND parentref = (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subject'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite'))
1094
+
WHERE xpath ='data/attributes/subjects/schemeUri'AND parentref = (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subjects'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite'))
VALUES ('SchemeUri', '', '', true, false, 'data/attributes/subjects/schemeUri', (select id frompublic.dim_mappingconceptswhere name ='DataCite'), (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subject'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite')));
1098
+
VALUES ('SchemeUri', '', '', true, false, 'data/attributes/subjects/schemeUri', (select id frompublic.dim_mappingconceptswhere name ='DataCite'), (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subjects'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite')));
1099
1099
1100
1100
GET DIAGNOSTICS cnt = ROW_COUNT;
1101
1101
RAISE NOTICE 'Inserted % rows', cnt;
@@ -1111,11 +1111,11 @@ DECLARE
1111
1111
BEGIN
1112
1112
IF NOT EXISTS (
1113
1113
SELECT1FROMpublic.dim_mappingkeys
1114
-
WHERE xpath ='data/attributes/subjects/valueUri'AND parentref = (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subject'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite'))
1114
+
WHERE xpath ='data/attributes/subjects/valueUri'AND parentref = (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subjects'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite'))
VALUES ('ValueUri', '', '', true, false, 'data/attributes/subjects/valueUri', (select id frompublic.dim_mappingconceptswhere name ='DataCite'), (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subject'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite')));
1118
+
VALUES ('ValueUri', '', '', true, false, 'data/attributes/subjects/valueUri', (select id frompublic.dim_mappingconceptswhere name ='DataCite'), (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subjects'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite')));
1119
1119
1120
1120
GET DIAGNOSTICS cnt = ROW_COUNT;
1121
1121
RAISE NOTICE 'Inserted % rows', cnt;
@@ -1131,11 +1131,11 @@ DECLARE
1131
1131
BEGIN
1132
1132
IF NOT EXISTS (
1133
1133
SELECT1FROMpublic.dim_mappingkeys
1134
-
WHERE xpath ='data/attributes/subjects/lang'AND parentref = (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subject'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite'))
1134
+
WHERE xpath ='data/attributes/subjects/lang'AND parentref = (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subjects'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite'))
VALUES ('Language', '', '', true, false, 'data/attributes/subjects/lang', (select id frompublic.dim_mappingconceptswhere name ='DataCite'), (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subject'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite')));
1138
+
VALUES ('Language', '', '', true, false, 'data/attributes/subjects/lang', (select id frompublic.dim_mappingconceptswhere name ='DataCite'), (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subjects'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite')));
1139
1139
1140
1140
GET DIAGNOSTICS cnt = ROW_COUNT;
1141
1141
RAISE NOTICE 'Inserted % rows', cnt;
@@ -1151,11 +1151,11 @@ DECLARE
1151
1151
BEGIN
1152
1152
IF NOT EXISTS (
1153
1153
SELECT1FROMpublic.dim_mappingkeys
1154
-
WHERE xpath ='data/attributes/subjects/classificationCode'AND parentref = (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subject'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite'))
1154
+
WHERE xpath ='data/attributes/subjects/classificationCode'AND parentref = (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subjects'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite'))
VALUES ('ClassificationCode', '', '', true, false, 'data/attributes/subjects/classificationCode', (select id frompublic.dim_mappingconceptswhere name ='DataCite'), (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subject'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite')));
1158
+
VALUES ('ClassificationCode', '', '', true, false, 'data/attributes/subjects/classificationCode', (select id frompublic.dim_mappingconceptswhere name ='DataCite'), (select id frompublic.dim_mappingkeyswhere xpath ='data/attributes/subjects'AND concept = (select id frompublic.dim_mappingconceptswhere name ='DataCite')));
0 commit comments