mirror of
https://github.com/home-assistant/core.git
synced 2025-07-11 07:17:12 +00:00
Change minimum supported SQLite version to 3.31.0 (#59073)
This commit is contained in:
parent
620db191b1
commit
be4e9f91b6
@ -49,7 +49,7 @@ MIN_VERSION_MARIA_DB_ROWNUM = AwesomeVersion("10.2.0", AwesomeVersionStrategy.SI
|
|||||||
MIN_VERSION_MYSQL = AwesomeVersion("8.0.0", AwesomeVersionStrategy.SIMPLEVER)
|
MIN_VERSION_MYSQL = AwesomeVersion("8.0.0", AwesomeVersionStrategy.SIMPLEVER)
|
||||||
MIN_VERSION_MYSQL_ROWNUM = AwesomeVersion("5.8.0", AwesomeVersionStrategy.SIMPLEVER)
|
MIN_VERSION_MYSQL_ROWNUM = AwesomeVersion("5.8.0", AwesomeVersionStrategy.SIMPLEVER)
|
||||||
MIN_VERSION_PGSQL = AwesomeVersion("12.0", AwesomeVersionStrategy.SIMPLEVER)
|
MIN_VERSION_PGSQL = AwesomeVersion("12.0", AwesomeVersionStrategy.SIMPLEVER)
|
||||||
MIN_VERSION_SQLITE = AwesomeVersion("3.32.1", AwesomeVersionStrategy.SIMPLEVER)
|
MIN_VERSION_SQLITE = AwesomeVersion("3.31.0", AwesomeVersionStrategy.SIMPLEVER)
|
||||||
MIN_VERSION_SQLITE_ROWNUM = AwesomeVersion("3.25.0", AwesomeVersionStrategy.SIMPLEVER)
|
MIN_VERSION_SQLITE_ROWNUM = AwesomeVersion("3.25.0", AwesomeVersionStrategy.SIMPLEVER)
|
||||||
|
|
||||||
# This is the maximum time after the recorder ends the session
|
# This is the maximum time after the recorder ends the session
|
||||||
@ -295,7 +295,7 @@ def _warn_unsupported_dialect(dialect):
|
|||||||
"Starting with Home Assistant 2022.2 this will prevent the recorder from "
|
"Starting with Home Assistant 2022.2 this will prevent the recorder from "
|
||||||
"starting. Please migrate your database to a supported software before then",
|
"starting. Please migrate your database to a supported software before then",
|
||||||
dialect,
|
dialect,
|
||||||
"MariaDB ≥ 10.3, MySQL ≥ 8.0, PostgreSQL ≥ 12, SQLite ≥ 3.32.1",
|
"MariaDB ≥ 10.3, MySQL ≥ 8.0, PostgreSQL ≥ 12, SQLite ≥ 3.31.0",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -364,20 +364,16 @@ def test_supported_pgsql(caplog, pgsql_version):
|
|||||||
"sqlite_version,message",
|
"sqlite_version,message",
|
||||||
[
|
[
|
||||||
(
|
(
|
||||||
"3.32.0",
|
"3.30.0",
|
||||||
"Version 3.32.0 of SQLite is not supported; minimum supported version is 3.32.1.",
|
"Version 3.30.0 of SQLite is not supported; minimum supported version is 3.31.0.",
|
||||||
),
|
|
||||||
(
|
|
||||||
"3.31.0",
|
|
||||||
"Version 3.31.0 of SQLite is not supported; minimum supported version is 3.32.1.",
|
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
"2.0.0",
|
"2.0.0",
|
||||||
"Version 2.0.0 of SQLite is not supported; minimum supported version is 3.32.1.",
|
"Version 2.0.0 of SQLite is not supported; minimum supported version is 3.31.0.",
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
"dogs",
|
"dogs",
|
||||||
"Version dogs of SQLite is not supported; minimum supported version is 3.32.1.",
|
"Version dogs of SQLite is not supported; minimum supported version is 3.31.0.",
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
@ -410,7 +406,7 @@ def test_warn_outdated_sqlite(caplog, sqlite_version, message):
|
|||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"sqlite_version",
|
"sqlite_version",
|
||||||
[
|
[
|
||||||
("3.32.1"),
|
("3.31.0"),
|
||||||
("3.33.0"),
|
("3.33.0"),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user