core/homeassistant
J. Nick Koston 00c1a3fd4e
Ensure legacy event foreign key is removed from the states table when a previous rebuild failed (#123388)
* Ensure legacy event foreign key is removed from the states table

If the system ran out of disk space removing the FK, it would
fail. #121938 fixed that to try again, however that PR was made
ineffective by #122069 since it will never reach the check.

To solve this, the migration version is incremented to 2, and
the migration is no longer marked as done unless the rebuild
/fk removal is successful.

* fix logic for mysql

* fix test

* asserts

* coverage

* coverage

* narrow test

* fixes

* split tests

* should have skipped

* fixture must be used
2024-08-09 06:19:12 +02:00
..
auth
backports
brands
components Ensure legacy event foreign key is removed from the states table when a previous rebuild failed (#123388) 2024-08-09 06:19:12 +02:00
generated
helpers Reduce number of aiohttp.TCPConnector cleanup_closed checks to one per minute (#123268) 2024-08-08 15:52:09 -05:00
scripts
util Fix raise-within-try in language util (#123354) 2024-08-08 18:51:19 +02:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py
config.py Revert "Fix blocking I/O while validating config schema" (#123377) 2024-08-08 17:30:39 +02:00
config_entries.py
const.py
core.py
data_entry_flow.py
exceptions.py
loader.py
package_constraints.txt Bump aiohttp to 3.10.2 (#123394) 2024-08-08 17:07:22 -05:00
py.typed
requirements.py
runner.py
setup.py
strings.json