1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-15 02:23:47 +01:00
Files
core/tests/components
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
..
2024-07-24 21:40:05 +02:00
2024-07-19 18:25:07 +02:00
2024-08-02 12:17:51 +02:00
2024-07-10 21:53:11 +02:00
2024-08-02 08:48:41 +02:00
2024-07-10 23:08:25 +02:00
2024-08-08 08:59:30 +02:00
2024-07-16 22:36:31 +02:00
2024-07-22 13:09:08 +02:00
2024-07-24 20:37:38 +02:00