Skip to content

Commit

Permalink
1433: add regionIdentifier for koblenz, since its needed for user dat…
Browse files Browse the repository at this point in the history
…a import
  • Loading branch information
f1sh1918 committed Jul 29, 2024
1 parent d3879e2 commit ba75f0c
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ fun insertOrUpdateRegions() {
regionProjectId: String,
regionName: String,
regionPrefix: String,
regionKey: String?,
regionWebsite: String
) {
val project =
Expand All @@ -25,13 +26,14 @@ fun insertOrUpdateRegions() {
projectId = project.id
name = regionName
prefix = regionPrefix
regionIdentifier = null
regionIdentifier = regionKey
website = regionWebsite
}
} else {
region.name = regionName
region.prefix = regionPrefix
region.website = regionWebsite
region.regionIdentifier = regionKey
}
}

Expand All @@ -56,8 +58,8 @@ fun insertOrUpdateRegions() {
dbRegion.website = eakRegion[3]
}
}

createOrUpdateRegion(NUERNBERG_PASS_PROJECT, "Nürnberg", "Stadt", "https://nuernberg.de")
createOrUpdateRegion(KOBLENZ_PASS_PROJECT, "Koblenz", "Stadt", "https://koblenz.de/")
// TODO #1551: Adjust regionidentifier_unique constraint
createOrUpdateRegion(NUERNBERG_PASS_PROJECT, "Nürnberg", "Stadt", null,"https://nuernberg.de")
createOrUpdateRegion(KOBLENZ_PASS_PROJECT, "Koblenz", "Stadt", "07111","https://koblenz.de/")
}
}

0 comments on commit ba75f0c

Please sign in to comment.