1
0
mirror of https://github.com/home-assistant/core.git synced 2026-08-05 12:57:14 +01:00
Files
core/tests/components
Erik Montnemery b7bbc938d3 Drop violating rows before adding foreign constraints in DB schema 44 migration (#123454)
* Drop violating rows before adding foreign constraints

* Don't delete rows with null-references

* Only delete rows when integrityerror is caught

* Move restore of dropped foreign key constraints to a separate migration step

* Use aliases for tables

* Update homeassistant/components/recorder/migration.py

* Update test

* Don't use alias for table we're deleting from, improve test

* Fix MySQL

* Update instead of deleting in case of self references

* Improve log messages

* Batch updates

* Add workaround for unsupported LIMIT in PostgreSQL

* Simplify

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-08-14 09:31:37 +02:00
..
2024-08-12 13:28:09 +02:00
2024-08-13 14:06:38 -05:00
2024-08-12 13:28:09 +02:00
2024-08-12 13:28:09 +02:00
2024-08-10 12:28:48 +02:00
2024-08-12 13:28:09 +02:00
2024-07-24 21:40:05 +02:00
2024-08-02 12:17:51 +02:00
2024-08-12 13:28:09 +02:00
2024-07-10 21:53:11 +02:00
2024-08-12 13:28:09 +02:00
2024-08-12 13:28:09 +02:00
2024-08-12 13:28:09 +02:00
2024-08-12 13:28:09 +02:00
2024-08-12 13:28:09 +02:00
2024-08-12 13:28:09 +02:00
2024-08-08 08:59:30 +02:00
2024-08-12 13:28:09 +02:00
2024-07-16 22:36:31 +02:00
2024-08-12 13:28:09 +02:00
2024-08-12 13:28:09 +02:00
2024-07-22 13:09:08 +02:00
2024-07-24 20:37:38 +02:00