diff --git a/pom.xml b/pom.xml
index 962d101a..e5017b16 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,6 +20,7 @@
21
2.10.0
2.0.16
+ 2.18.1
@@ -73,28 +74,11 @@
io.jsonwebtoken
jjwt
0.9.1
-
-
- com.fasterxml.jackson.core
- jackson-databind
-
-
com.google.api-client
google-api-client
1.27.0
-
-
- com.fasterxml.jackson.core
- jackson-core
-
-
-
-
- com.fasterxml.jackson.core
- jackson-databind
- [2.9.9.1,)
io.springfox
@@ -106,11 +90,6 @@
springfox-swagger-ui
${springfox-version}
-
- com.github.joschi.jackson
- jackson-datatype-threetenbp
- 2.8.4
-
jakarta.annotation
jakarta.annotation-api
@@ -143,6 +122,18 @@
+
+
+
+ com.fasterxml.jackson
+ jackson-bom
+ ${jackson.version}
+ pom
+ import
+
+
+
+
diff --git a/src/main/resources/db/migration/V005.005__migrate_germplasm_external_uid.sql b/src/main/resources/db/migration/V005.005__migrate_germplasm_external_uid.sql
new file mode 100644
index 00000000..283f61f4
--- /dev/null
+++ b/src/main/resources/db/migration/V005.005__migrate_germplasm_external_uid.sql
@@ -0,0 +1,16 @@
+-- Update germplasm exref sources to 'External UID' instead of
+-- seed source value for external UIDs.
+
+UPDATE external_reference exref
+SET external_reference_source = 'External UID'
+WHERE exref.external_reference_source IS DISTINCT FROM 'External UID'
+ AND NULLIF(btrim(exref.external_reference_source), '') IS NOT NULL
+ AND EXISTS (
+ SELECT 1
+ FROM germplasm_external_references ger
+ JOIN germplasm g
+ ON g.id = ger.germplasm_entity_id
+ WHERE ger.external_references_id = exref.id
+ AND NULLIF(btrim(g.seed_source), '') IS NOT NULL
+ AND btrim(g.seed_source) = btrim(exref.external_reference_source)
+ );