Skip to content

Commit

Permalink
tar i bruk ny checksum når migrering går fra failed to success
Browse files Browse the repository at this point in the history
Co-authored-by: stephen ramthun <stephen.ramthun@nav.no>
Co-authored-by: martine enger <marenger@student.matnat.uio.no>
Co-authored-by: anders skifte <anders.skifte@nav.no>
  • Loading branch information
4 people committed Jan 17, 2025
1 parent a5d72f1 commit 4629925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/jdbc/main/libs/postgres/Migrator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Migrator(locations: List<File>) {

when (migration) {
null -> Migration.update(candidate.migration.copy(success = true))
else -> Migration.update(migration.copy(success = true))
else -> Migration.update(migration.copy(success = true, checksum = candidate.migration.checksum))
}

jdbcLog.info("Migration [DONE] ${candidate.file.name}")
Expand Down

0 comments on commit 4629925

Please sign in to comment.