Skip to content

Commit

Permalink
fix: Create schemaDir when it doesn't exists
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Fontán <[email protected]>
  • Loading branch information
BobbyESP committed Apr 1, 2024
1 parent acd8c9d commit 762b0a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ class RoomSchemaArgProvider(
) : CommandLineArgumentProvider {

override fun asArguments(): Iterable<String> {
if (!schemaDir.exists()) {
schemaDir.mkdirs()
}
return listOf("room.schemaLocation=${schemaDir.path}")
}
}
Expand Down

0 comments on commit 762b0a7

Please sign in to comment.