forked from SteamWar/SteamWar
@@ -29,6 +29,11 @@ class ResetCommand : CliktCommand() {
|
||||
|
||||
execute(schema) { }
|
||||
|
||||
val seed = javaClass.getResource("/db/reset-seed.sql")
|
||||
?: throw CliktError("Reset seed file not found!")
|
||||
|
||||
execute(seed.readText()) { }
|
||||
|
||||
echo(TextColors.brightGreen(TextStyles.bold("Database reset!")))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user