mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
fix: Foreign Key Violations During Backup Restore (#2986)
* added more test data * added missing pytest id * add fk validation to backup restore * removed bad type imports * actually apply the invalid fk filter and clean up types * fix key name * added log when removing bad rows * removed unused import * bumped info to warning
This commit is contained in:
parent
b4c0a8b509
commit
2a5997a968
5 changed files with 51 additions and 3 deletions
|
@ -73,12 +73,14 @@ def test_database_restore():
|
|||
[
|
||||
test_data.backup_version_44e8d670719d_1,
|
||||
test_data.backup_version_44e8d670719d_2,
|
||||
test_data.backup_version_44e8d670719d_3,
|
||||
test_data.backup_version_ba1e4a6cfe99_1,
|
||||
test_data.backup_version_bcfdad6b7355_1,
|
||||
],
|
||||
ids=[
|
||||
"44e8d670719d_1: add extras to shopping lists, list items, and ingredient foods",
|
||||
"44e8d670719d_2: add extras to shopping lists, list items, and ingredient foods",
|
||||
"44e8d670719d_3: add extras to shopping lists, list items, and ingredient foods",
|
||||
"ba1e4a6cfe99_1: added plural names and alias tables for foods and units",
|
||||
"bcfdad6b7355_1: remove tool name and slug unique contraints",
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue