core/homeassistant
J. Nick Koston 1a82b353e0
Auto repair incorrect collation on MySQL schema (#92270)
* Auto repair incorrect collation on MySQL schema

As we do more union queries in 2023.5.x if there is a mismatch
between collations on tables, they will fail with an error
that is hard for the user to figure out how to fix

`Error executing query: (MySQLdb.OperationalError) (1271, "Illegal mix of collations for operation UNION")`

This was reported in the #beta channel and by PM from others
so the problem is not isolated to a single user

https://discord.com/channels/330944238910963714/427516175237382144/1100908739910963272

* test with ascii since older maraidb versions may not work otherwise

* Revert "test with ascii since older maraidb versions may not work otherwise"

This reverts commit 787fda1aefcd8418a28a8a8f430e7e7232218ef8.t

* older version need to check collation_server because the collation is not reflected if its the default
2023-04-29 21:17:09 -04:00
..
auth
backports
brands
components Auto repair incorrect collation on MySQL schema (#92270) 2023-04-29 21:17:09 -04:00
generated NextBus: Correct iot_class (#92208) 2023-04-29 21:41:35 +02:00
helpers Add assist pipeline and language selectors (#92030) 2023-04-26 18:39:02 +02:00
scripts
util Use order in preferred regions list (#91959) 2023-04-24 14:12:38 -04:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py
config.py
config_entries.py Only check support_entry_unload/support_remove_from_device once (#92041) 2023-04-26 10:23:18 +02:00
const.py Bump version to 2023.6.0dev0 (#92081) 2023-04-26 22:58:26 +02:00
core.py Add as_dict cache to Context and Event (#92162) 2023-04-28 21:15:39 +02:00
data_entry_flow.py
exceptions.py
loader.py
package_constraints.txt Update orjson to 3.8.11 (#92228) 2023-04-29 20:22:33 -04:00
requirements.py
runner.py
setup.py
strings.json