Skip to content

Commit 8f62ea1

Browse files
committed
allow upcoming major as well but issue a warning
1 parent 2d6a8a7 commit 8f62ea1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/teslamate/database_check.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ defmodule TeslaMate.DatabaseCheck do
3939
IO.puts("PostgreSQL version #{raw_version} is compatible (17.x series).")
4040
end
4141

42+
major_int when major_int > 17 ->
43+
IO.puts("PostgreSQL version #{raw_version} is not officially tested or supported yet. Use at your own risk.")
44+
4245
_ ->
4346
raise "PostgreSQL version #{raw_version} is not supported. Only 16.x (min #{@min_version_16}) and 17.x (min #{@min_version_17}) are supported."
4447
end

0 commit comments

Comments
 (0)