Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #117 from echo-webkom/fix/migrate-db-bug
Browse files Browse the repository at this point in the history
🐛 Wrong logic for database migration
  • Loading branch information
bakseter authored Aug 30, 2021
2 parents 287c4e6 + 87754b0 commit c81bf55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/no/uib/echo/Database.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ object Db {
}

fun init() {
// Don't migrate if running in CI or on local machine
if (System.getenv("CI") != null && System.getenv("DEV") != null)
// Don't migrate if running on local machine
if (System.getenv("DEV") == null)
migrate()

transaction(conn) {
Expand Down

0 comments on commit c81bf55

Please sign in to comment.