Skip to content

Commit

Permalink
Add context transaction & update config
Browse files Browse the repository at this point in the history
  • Loading branch information
waltkb committed Dec 14, 2023
1 parent f1afc59 commit 2606633
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion waltid-web-wallet/config/db.sqlite.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ hikariDataSource {
fullColumnNames = false
}
}
recreateDatabaseOnStart = true
recreateDatabaseOnStart = false
4 changes: 3 additions & 1 deletion waltid-web-wallet/src/main/kotlin/id/walt/webwallet/db/Db.kt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ object Db {
if (datasourceConfig.recreateDatabaseOnStart) {
recreateDatabase()
} else {
SchemaUtils.createMissingTablesAndColumns(*tables)
transaction {
SchemaUtils.createMissingTablesAndColumns(*tables)
}
}
}

Expand Down

0 comments on commit 2606633

Please sign in to comment.